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:
parent
2d4d5fcceb
commit
ac1ce967c1
|
@ -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 );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue