JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5
[ckeditor.git] / _source / plugins / wsc / dialogs / wsc.js
index 7bc95dd..7cc48ed 100644 (file)
@@ -179,9 +179,13 @@ CKEDITOR.dialog.add( 'checkspell', function( editor )
 CKEDITOR.dialog.on( 'resize', function( evt )\r
 {\r
        var data = evt.data,\r
-               dialog = data.dialog,\r
-               height = data.height;\r
+               dialog = data.dialog;\r
+\r
+       if ( dialog._.name == 'checkspell' )\r
+       {\r
                var content = dialog.getContentElement( 'general', 'content' ).getElement(),\r
-                               iframe = content && content.getChild( 2 );\r
-               iframe && iframe.setStyle( 'height', height + 'px' );\r
+                       iframe = content && content.getChild( 2 );\r
+\r
+               iframe && iframe.setStyle( 'height', data.height + 'px' );\r
+       }\r
 });\r