Merge "AceEditorWidget: Emit resize event at end of cycle"

This commit is contained in:
jenkins-bot 2015-11-15 02:38:22 +00:00 committed by Gerrit Code Review
commit f44e127eb5

View file

@ -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' ) );
};
/**