diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 8151425e1..4df0e1f06 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -177,7 +177,11 @@ socket.on('typing', function (users){ }) function scroll_chat() { - box.scrollTo(0, box.scrollHeight) + setTimeout(function () { + box.scrollTo(0, box.scrollHeight) + }, 0100); } -scroll_chat() \ No newline at end of file +scroll_chat() + +box.scrollTo(0, box.scrollHeight) \ No newline at end of file diff --git a/files/templates/chat.html b/files/templates/chat.html index ea0c0f24c..c25419802 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -214,6 +214,6 @@ - + \ No newline at end of file