Merge pull request #3634 from tgxworld/fix_draft_overlaps

FIX: Draft overlaps topic counts blurb in suggested topics.
This commit is contained in:
Sam 2015-08-05 14:49:35 +10:00
commit 7ba7b23aec
1 changed files with 4 additions and 1 deletions

View File

@ -545,8 +545,11 @@ const ComposerView = Discourse.View.extend(Ember.Evented, {
this.$('.wmd-preview').off('click.preview');
const self = this;
Em.run.next(() => {
$('#main-outlet').css('padding-bottom', 0);
const sizePx = self.get('composeState') === Discourse.Composer.CLOSED ? 0 : $('#reply-control').height();
$('#main-outlet').css('padding-bottom', sizePx);
// need to wait a bit for the "slide down" transition of the composer
Em.run.later(() => {
this.appEvents.trigger("composer:closed");