Browse files

fixed scroll when new messages arrive

  • Loading branch information...
1 parent c9427b4 commit c7b84133249f5255c302c730996b33748f9a2e0c @xen xen committed May 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Brief.SkypeChatStyle/Contents/Resources/js/main.js
View
2 Brief.SkypeChatStyle/Contents/Resources/js/main.js
@@ -397,7 +397,7 @@ SCS.Conversation = function() {
* @private
*/
this._nearBottom = function() {
- return (document.body.scrollTop+window.innerHeight >= document.body.offsetHeight-75);
+ return (document.body.scrollTop+window.innerHeight >= document.body.scrollHeight-75);
};
/**

0 comments on commit c7b8413

Please sign in to comment.