Skip to content

Commit d2405c6

Browse files
committed
MOBILE-1988 rte: Fix restore initial height on textarea
1 parent 7977a2c commit d2405c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

www/core/directives/richtexteditor.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,13 @@ angular.module('mm.core')
597597

598598
// Undo resize.
599599
function undoResize(editorEl, contentsEl) {
600-
angular.element(editorEl).css('height', '');
601600
if (contentsEl) {
601+
// RTE enabled.
602+
angular.element(editorEl).css('height', '');
602603
angular.element(contentsEl).css('height', editorInitialHeight + 'px');
604+
} else {
605+
// Textarea.
606+
angular.element(editorEl).css('height', editorInitialHeight + 'px');
603607
}
604608
resized = false;
605609
}

0 commit comments

Comments
 (0)