mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
Update calculations when opened
This commit is contained in:
parent
8f1b6eb561
commit
a659fe3cc3
@ -7,7 +7,7 @@ export default Ember.Component.extend({
|
|||||||
|
|
||||||
showClose: Ember.computed.equal('viewMode', 'slide-in'),
|
showClose: Ember.computed.equal('viewMode', 'slide-in'),
|
||||||
|
|
||||||
@computed('viewMode')
|
@computed('viewMode', 'visible')
|
||||||
style(viewMode) {
|
style(viewMode) {
|
||||||
if (viewMode === 'drop-down') {
|
if (viewMode === 'drop-down') {
|
||||||
const $buttonPanel = $('header ul.icons');
|
const $buttonPanel = $('header ul.icons');
|
||||||
@ -26,7 +26,7 @@ export default Ember.Component.extend({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed('viewMode')
|
@computed('viewMode', 'visible')
|
||||||
bodyStyle(viewMode) {
|
bodyStyle(viewMode) {
|
||||||
if (viewMode === 'drop-down') {
|
if (viewMode === 'drop-down') {
|
||||||
const height = parseInt($(window).height() * 0.8)
|
const height = parseInt($(window).height() * 0.8)
|
||||||
|
Loading…
Reference in New Issue
Block a user