[BUGFIX] RTE Spellchecker dialogue fails to open in IE
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 8 Aug 2011 03:58:55 +0000 (23:58 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Mon, 8 Aug 2011 04:01:21 +0000 (06:01 +0200)
ExtJs raises js error in IE due to 'auto' window height.

Change-Id: Ia90b58bfeeb4bbb440037725ca296dd77eaf1169
Fixs: #28820
Releases: 4.5, 4.6
Reviewed-on: http://review.typo3.org/4211
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/htmlarea/plugins/SpellChecker/spell-checker.js

index 19fe3ea..3db138d 100644 (file)
@@ -128,7 +128,7 @@ HTMLArea.SpellChecker = Ext.extend(HTMLArea.Plugin, {
                        bodyCssClass: 'spell-check',
                        border: false,
                        width: dimensions.width,
-                       height: 'auto',
+                       height: Ext.isIE ? dimensions.height - 50 : 'auto',
                                // As of ExtJS 3.1, JS error with IE when the window is resizable
                        resizable: !Ext.isIE,
                        iconCls: this.getButton(buttonId).iconCls,