Force Ace Editor to resize after the dialog has been rendered

If the editor resizes first, the height is 0px.

Depends on: I48307bd9184b

Bug: T121164
Change-Id: Ieb4ed963b03c9e7d802e9547478eb3c9cde512ae
This commit is contained in:
Thalia 2015-12-19 11:00:57 +00:00 committed by Esanders
parent 2d4d5fcceb
commit ac1ce967c1
1 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,8 @@ ve.ui.MWMathDialog.prototype.getReadyProcess = function ( data ) {
return this.symbolsPromise;
}, this )
.next( function () {
this.input.focus().moveCursorToEnd();
// Resize the input once the dialog has been appended
this.input.adjustSize( true ).focus().moveCursorToEnd();
}, this );
};