فهرست منبع

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]