Update calculations when opened

This commit is contained in:
Robin Ward 2015-08-26 16:59:54 -04:00
parent 8f1b6eb561
commit a659fe3cc3
1 changed files with 2 additions and 2 deletions

View File

@ -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)