FIX: Draft overlaps topic counts blurb in suggested topics.

This commit is contained in:
Guo Xiang Tan 2015-07-29 01:02:40 +08:00
parent d6069e8c90
commit 08e69b988c

View File

@ -543,8 +543,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");