BUGFIX: adjust page padding when composer view open

From https://meta.discourse.org/t/discourse-general-polish/13184 :

"Footer padding gets out of sync: start typing a new topic in the composer ... size it big ... got to random topic ... footer padding is not added so you can not see the last post on topic. (workaround, resize composer once more so footer padding is added). This need to be added everywhere automatically. Including admin screens."
This commit is contained in:
Brad Wilson 2014-04-11 09:54:14 +10:00
parent 2e3ba1d5dc
commit 836b0c41ab
1 changed files with 2 additions and 1 deletions

View File

@ -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();
},