mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
Merge pull request #2254 from bradx3/fix_composer_padding
BUGFIX: adjust page padding when composer view open
This commit is contained in:
commit
e770112cf5
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,7 @@ Discourse.ComposerView = Discourse.View.extend(Ember.Evented, {
|
|||
var replyControl = $('#reply-control');
|
||||
var h = replyControl.height() || 0;
|
||||
var sizePx = "" + h + "px";
|
||||
$('.topic-area').css('padding-bottom', sizePx);
|
||||
$('#main-outlet').css('padding-bottom', sizePx);
|
||||
$('.composer-popup').css('bottom', sizePx);
|
||||
});
|
||||
}.observes('model.composeState'),
|
||||
|
@ -438,6 +438,7 @@ Discourse.ComposerView = Discourse.View.extend(Ember.Evented, {
|
|||
},
|
||||
|
||||
childWillDestroyElement: function() {
|
||||
$('#main-outlet').css('padding-bottom', 0);
|
||||
this._unbindUploadTarget();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue