mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Merge "AceEditorWidget: Emit resize event at end of cycle"
This commit is contained in:
commit
f44e127eb5
|
@ -134,7 +134,8 @@ ve.ui.MWAceEditorWidget.prototype.onEditorChange = function () {
|
|||
* @fires resize
|
||||
*/
|
||||
ve.ui.MWAceEditorWidget.prototype.onEditorResize = function () {
|
||||
this.emit.bind( this, 'resize' );
|
||||
// On the first setup the editor doesn't resize until the end of the cycle
|
||||
setTimeout( this.emit.bind( this, 'resize' ) );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue