summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chat/js/chat.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/chat/js/chat.js b/chat/js/chat.js
index 3e5caeb..0fbd5f1 100644
--- a/chat/js/chat.js
+++ b/chat/js/chat.js
@@ -1408,9 +1408,14 @@ var ajaxChat = {
}
if(this.settings['autoScroll']) {
- this.dom['chatList'].scrollTop = this.dom['chatList'].scrollHeight;
+ var self = this;
+ setTimeout(function() { self.scrollChatList(); }, 50);
}
},
+
+ scrollChatList: function() {
+ this.dom['chatList'].scrollTop = this.dom['chatList'].scrollHeight;
+ },
encodeText: function(text) {
return encodeURIComponent(text);