scrolling for chatbot
snippet in javascript

scrolling for chatbot

user1148

var pageHeight = $('#dialog').height();
/*Now at the time of insertion of element*/
pageHeight = pageHeight + 100;
$('#dialog').scrollTop(pageHeight);