From 58abb2801a49509c9c39f230aa403b530000dc7f Mon Sep 17 00:00:00 2001 From: Darren Date: Wed, 24 Apr 2013 22:20:26 +0100 Subject: [PATCH] doLayout() after a panel has emitted its events --- client/assets/dev/view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/assets/dev/view.js b/client/assets/dev/view.js index 31f73ff..eed81b4 100644 --- a/client/assets/dev/view.js +++ b/client/assets/dev/view.js @@ -580,8 +580,6 @@ _kiwi.view.Panel = Backbone.View.extend({ $('#memberlists').addClass('disabled').children().removeClass('active'); } - _kiwi.app.view.doLayout(); - // Remove any alerts and activity counters for this panel this.alert('none'); this.model.tab.find('.activity').text('0').addClass('zero'); @@ -589,6 +587,8 @@ _kiwi.view.Panel = Backbone.View.extend({ _kiwi.app.panels.trigger('active', this.model, _kiwi.app.panels().active); this.model.trigger('active', this.model); + _kiwi.app.view.doLayout(); + this.scrollToBottom(true); }, -- 2.25.1