Skip to content

Commit

Permalink
Revert and find a compromise between the two solutions
Browse files Browse the repository at this point in the history
IE was showing jumpiness when you scrolled to 0
  • Loading branch information
dpatti committed Aug 1, 2012
1 parent 68561db commit 192d3df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion JabbR/Chat.ui.js
Expand Up @@ -162,8 +162,13 @@
};

this.scrollToBottom = function () {
var height = this.messages[0].scrollHeight - this.messages.height();

this.messages
.scrollTop(0) // Fix for bug in Chrome
// Fix for bug in Chrome
.scrollTop(height - 1)
// Still use full scrollHeight since height is not the best you
// can do if there is a horizontal scrollbar
.scrollTop(this.messages[0].scrollHeight);
};

Expand Down

0 comments on commit 192d3df

Please sign in to comment.