doLayout() after a panel has emitted its events
authorDarren <darren@Darrens-MacBook-Pro.local>
Wed, 24 Apr 2013 21:20:26 +0000 (22:20 +0100)
committerDarren <darren@Darrens-MacBook-Pro.local>
Wed, 24 Apr 2013 21:20:26 +0000 (22:20 +0100)
client/assets/dev/view.js

index 31f73ffcf52a3413358aac9d494560a28d359ddf..eed81b4149b8b8285a7e626581b7254e41acf193 100644 (file)
@@ -580,8 +580,6 @@ _kiwi.view.Panel = Backbone.View.extend({
             $('#memberlists').addClass('disabled').children().removeClass('active');\r
         }\r
 \r
-        _kiwi.app.view.doLayout();\r
-\r
         // Remove any alerts and activity counters for this panel\r
         this.alert('none');\r
         this.model.tab.find('.activity').text('0').addClass('zero');\r
@@ -589,6 +587,8 @@ _kiwi.view.Panel = Backbone.View.extend({
         _kiwi.app.panels.trigger('active', this.model, _kiwi.app.panels().active);\r
         this.model.trigger('active', this.model);\r
 \r
+        _kiwi.app.view.doLayout();\r
+\r
         this.scrollToBottom(true);\r
     },\r
 \r