From ac1ce967c1859ec100c6f14d5697bb99ea786f30 Mon Sep 17 00:00:00 2001 From: Thalia Date: Sat, 19 Dec 2015 11:00:57 +0000 Subject: [PATCH] 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 --- modules/ve-math/ve.ui.MWMathDialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ve-math/ve.ui.MWMathDialog.js b/modules/ve-math/ve.ui.MWMathDialog.js index b46d1cc..1ab67af 100644 --- a/modules/ve-math/ve.ui.MWMathDialog.js +++ b/modules/ve-math/ve.ui.MWMathDialog.js @@ -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 ); };