Ver código fonte

Call trimChats immediately, not only after the element is visible

Since the element will already be taking up space (due to the
`opacity:0` property being used, instead of `display:none`).
JC Brand 8 anos atrás
pai
commit
6abd805b52
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/converse-minimize.js

+ 2 - 2
src/converse-minimize.js

@@ -113,8 +113,8 @@
                     return this.__super__.initialize.apply(this, arguments);
                 },
 
-                afterShown: function () {
-                    this.__super__.afterShown.apply(this, arguments);
+                _show: function () {
+                    this.__super__._show.apply(this, arguments);
                     if (!this.model.get('minimized')) {
                         converse.chatboxviews.trimChats(this);
                     }