소스 검색

Bugfix concerning trimmed chats.

Chats were being trimmed even though there was enough room.
JC Brand 11 년 전
부모
커밋
3a30f30fb7
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      converse.js
  2. 1 0
      docs/CHANGES.rst

+ 1 - 1
converse.js

@@ -2918,7 +2918,7 @@
 
                 _.each(this.getAll(), function (view) {
                     var id = view.model.get('id');
-                    if ((id !== 'controlbox') && (id !== new_id) && (!view.model.get('minimized'))) {
+                    if ((id !== 'controlbox') && (id !== new_id) && (!view.model.get('minimized')) && view.$el.is(':visible')) {
                         boxes_width += view.$el.outerWidth(true);
                     }
                 });

+ 1 - 0
docs/CHANGES.rst

@@ -13,6 +13,7 @@ Changelog
 * Converse.js now responds to XEP-0030: Service Discovery requests. [jcbrand]
 * Bugfix. Roster groups all appear offline after page reload (with prebind).
   See http://librelist.com/browser//conversejs/2014/8/26/problem-with-contact-list-everyone-is-offline/ [heban and jcbrand]
+* Bugfix concerning trimmed chats. Chats were being trimmed even though there was enough room. [jcbrand]
 * #62 Sound notifications will now also play when you are mentioned in a chat room. [jcbrand]
 * #212 Bugfix. Groups weren't being show again after the live filter was cleared. [jcbrand]
 * #215 (and also #75) XEP-0249: Direct MUC Invitations. [jcbrand]