diff --git a/www/common/messenger-ui.js b/www/common/messenger-ui.js index e0e4d5c62..ed9d88f18 100644 --- a/www/common/messenger-ui.js +++ b/www/common/messenger-ui.js @@ -548,7 +548,7 @@ define([ }; var isBottomedOut = function ($elem) { - return ($elem[0].scrollHeight - $elem.scrollTop() === $elem.outerHeight()); + return ($elem[0].scrollHeight - $elem.scrollTop() === $elem[0].clientHeight); }; var onMessage = function (message) { @@ -584,7 +584,7 @@ define([ $messagebox.append(el_message); if (shouldScroll) { - $messagebox.scrollTop($messagebox.outerHeight()); + $messagebox.scrollTop($messagebox[0].scrollHeight); } normalizeLabels($messagebox); reorderRooms();