From ba4b1b8ed9e64af7cb69b5790fee2ce134285176 Mon Sep 17 00:00:00 2001 From: jdarwood007 Date: Sun, 18 Oct 2026 08:44:23 -0700 Subject: [PATCH] [2.1] Keep the original height of the editor during a resize Fixes #7946 --- Themes/default/scripts/jquery.sceditor.smf.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Themes/default/scripts/jquery.sceditor.smf.js b/Themes/default/scripts/jquery.sceditor.smf.js index 77f83b2adfb..2d745f334ad 100644 --- a/Themes/default/scripts/jquery.sceditor.smf.js +++ b/Themes/default/scripts/jquery.sceditor.smf.js @@ -306,7 +306,23 @@ sceditor.command.set( sceditor.command.set( 'maximize', { - shortcut: '' + shortcut: '', + exec: function (caller) + { + if (this.editorMainWrapper.style.height == '') { + this.height(this.editorMainWrapper.offsetHeight, this.editorMainWrapper.offsetHeight); + } + this.maximize(!this.maximize()); + this.focus(); + }, + txtExec: function (caller) + { + if (this.editorMainWrapper.style.height == '') { + this.height(this.editorMainWrapper.offsetHeight, this.editorMainWrapper.offsetHeight); + } + this.maximize(!this.maximize()); + this.focus(); + } } );