Pārlūkot izejas kodu

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.
JC Brand 9 gadi atpakaļ
vecāks
revīzija
6d766f684f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/converse-minimize.js

+ 1 - 0
src/converse-minimize.js

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