1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 08:11:27 +02:00

app.composer.show: Trigger synchronous redraw

This is needed to have access to the newly created SuperTextarea
instance (app.composer.editor) directly after calling show().

Discovered when making ext-mentions work with the Composer state
changes. As far as I could reconstruct, a synchronous redraw was also
triggered in this situation before the changes in #2161.
This commit is contained in:
Franz Liedke
2020-09-04 18:58:40 +02:00
parent 2aa4312886
commit eb0d3de3f6

View File

@@ -93,7 +93,7 @@ class ComposerState {
if (this.position === ComposerState.Position.NORMAL || this.position === ComposerState.Position.FULLSCREEN) return; if (this.position === ComposerState.Position.NORMAL || this.position === ComposerState.Position.FULLSCREEN) return;
this.position = ComposerState.Position.NORMAL; this.position = ComposerState.Position.NORMAL;
m.redraw(); m.redraw(true);
} }
/** /**