mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
Update calculations when opened
This commit is contained in:
parent
8f1b6eb561
commit
a659fe3cc3
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue