Scroll down when maximizing a chat

Otherwise maximized chats are scrolled to the top, showing the oldest messages.

Ideally we'd probably like to remember the scroll position, and show that, but
this would require some significant refactoring.
This commit is contained in:
JC Brand 2016-04-05 11:54:27 +00:00
parent 38322c7795
commit 6d766f684f

View File

@ -144,6 +144,7 @@
utils.refreshWebkit(); utils.refreshWebkit();
this.$content.scrollTop(this.model.get('scroll')); this.$content.scrollTop(this.model.get('scroll'));
this.setChatState(converse.ACTIVE).focus(); this.setChatState(converse.ACTIVE).focus();
this.scrollDown();
converse.emit('chatBoxMaximized', this); converse.emit('chatBoxMaximized', this);
}, },