From a659fe3cc3e7555c70883e5cd3ad6218aaabd1f1 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 26 Aug 2015 16:59:54 -0400 Subject: [PATCH] Update calculations when opened --- app/assets/javascripts/discourse/components/menu-panel.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/components/menu-panel.js.es6 b/app/assets/javascripts/discourse/components/menu-panel.js.es6 index 962967f82d6..cc92a49ddae 100644 --- a/app/assets/javascripts/discourse/components/menu-panel.js.es6 +++ b/app/assets/javascripts/discourse/components/menu-panel.js.es6 @@ -7,7 +7,7 @@ export default Ember.Component.extend({ showClose: Ember.computed.equal('viewMode', 'slide-in'), - @computed('viewMode') + @computed('viewMode', 'visible') style(viewMode) { if (viewMode === 'drop-down') { const $buttonPanel = $('header ul.icons'); @@ -26,7 +26,7 @@ export default Ember.Component.extend({ } }, - @computed('viewMode') + @computed('viewMode', 'visible') bodyStyle(viewMode) { if (viewMode === 'drop-down') { const height = parseInt($(window).height() * 0.8)