From 753c579f0b7a564131a8da3ae2ae51973e36495b Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 16 Jun 2011 16:20:09 +0100 Subject: [PATCH 1/1] Feature #3789 let the minimum editor size be configurable. --- jscripts/tiny_mce/classes/Editor.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/jscripts/tiny_mce/classes/Editor.js b/jscripts/tiny_mce/classes/Editor.js index e23ca6c..012895c 100644 --- a/jscripts/tiny_mce/classes/Editor.js +++ b/jscripts/tiny_mce/classes/Editor.js @@ -1130,7 +1130,8 @@ w = Math.max(parseInt(w) + (o.deltaWidth || 0), 100); if (re.test('' + h)) - h = Math.max(parseInt(h) + (o.deltaHeight || 0), 100); + h = Math.max(parseInt(h) + (o.deltaHeight || 0), + s.theme_advanced_resizing_min_height || 100); // Render UI o = t.theme.renderUI({ @@ -1172,8 +1173,8 @@ } h = (o.iframeHeight || h) + (typeof(h) == 'number' ? (o.deltaHeight || 0) : ''); - if (h < 100) - h = 100; + if (h < (s.theme_advanced_resizing_min_height || 100)) + h = s.theme_advanced_resizing_min_height || 100; t.iframeHTML = s.doctype + ''; -- 1.7.5.4