diff --git a/web/js/map.js b/web/js/map.js index 3b399b46..459ea3f9 100644 --- a/web/js/map.js +++ b/web/js/map.js @@ -499,8 +499,7 @@ DynMap.prototype = { me.messagelist.show(); //var scrollHeight = jQuery(me.messagelist).attr('scrollHeight'); - var scrollHeight = me.messagelist.scrollHeight(); - messagelist.scrollTop(scrollHeight); + me.messagelist.scrollTop(me.messagelist.scrollHeight()); } }, onTileUpdated: function(tileName) {