JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.3
[ckeditor.git] / _source / plugins / maximize / plugin.js
index 5f2715e..fa2f791 100644 (file)
@@ -198,23 +198,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                        var styles =\r
                                                                {\r
                                                                        overflow : 'hidden',\r
-                                                                       width : ( CKEDITOR.env.opera ? viewPaneSize.width : 0 ) + 'px',\r
-                                                                       height : ( CKEDITOR.env.opera ? viewPaneSize.height - 16 : 0 ) + 'px'\r
+                                                                       width : 0,\r
+                                                                       height : 0\r
                                                                };\r
 \r
-                                                       if ( CKEDITOR.env.ie )\r
-                                                       {\r
-                                                               mainDocument.$.documentElement.style.overflow =\r
-                                                                       mainDocument.getBody().$.style.overflow = 'hidden';\r
-                                                       }\r
-                                                       else\r
-                                                       {\r
-                                                               mainDocument.getBody().setStyles( styles );\r
-                                                       }\r
-\r
-                                                       // #4023: [Opera] Maximize plugin\r
-                                                       if ( CKEDITOR.env.opera )\r
-                                                               mainDocument.getBody().getParent().setStyles( styles );\r
+                                                       mainDocument.getDocumentElement().setStyles( styles );\r
+                                                       !CKEDITOR.env.gecko && mainDocument.getDocumentElement().setStyle( 'position', 'fixed' );\r
+                                                       mainDocument.getBody().setStyles( styles );\r
 \r
                                                        // Scroll to the top left (IE needs some time for it - #4923).\r
                                                        CKEDITOR.env.ie ?\r