mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #3634 from tgxworld/fix_draft_overlaps
FIX: Draft overlaps topic counts blurb in suggested topics.
This commit is contained in:
commit
7ba7b23aec
@ -545,8 +545,11 @@ const ComposerView = Discourse.View.extend(Ember.Evented, {
|
|||||||
|
|
||||||
this.$('.wmd-preview').off('click.preview');
|
this.$('.wmd-preview').off('click.preview');
|
||||||
|
|
||||||
|
const self = this;
|
||||||
|
|
||||||
Em.run.next(() => {
|
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
|
// need to wait a bit for the "slide down" transition of the composer
|
||||||
Em.run.later(() => {
|
Em.run.later(() => {
|
||||||
this.appEvents.trigger("composer:closed");
|
this.appEvents.trigger("composer:closed");
|
||||||
|
Loading…
Reference in New Issue
Block a user