fix the scrolling in the chat messages box
This commit is contained in:
parent
5d838303a8
commit
74d372b942
1 changed files with 1 additions and 5 deletions
|
@ -260,12 +260,8 @@ Metamaps.Views.chatView = (function () {
|
|||
chatView.prototype.scrollMessages = function(duration) {
|
||||
duration = duration || 0;
|
||||
|
||||
var
|
||||
numMessages = this.$messages.find('.chat-message').length,
|
||||
messageHeight = 52;
|
||||
|
||||
this.$messages.animate({
|
||||
scrollTop: numMessages * messageHeight
|
||||
scrollTop: this.$messages[0].scrollHeight
|
||||
}, duration);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue