JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.2
[ckeditor.git] / _source / plugins / maximize / plugin.js
index bcb726c..9f18043 100644 (file)
@@ -226,6 +226,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                } );\r
 \r
                                                        shim =  createIframeShim( container );          // IE6 select element penetration when maximized. (#4459)\r
+\r
+                                                       // Add cke_maximized class before resize handle since that will change things sizes (#5580)\r
+                                                       container.addClass( 'cke_maximized' );\r
+\r
                                                        resizeHandler();\r
 \r
                                                        // Still not top left? Fix it. (Bug #174)\r
@@ -239,8 +243,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                        // Fixing positioning editor chrome in Firefox break design mode. (#5149)\r
                                                        CKEDITOR.env.gecko && refreshCursor( editor );\r
 \r
-                                                       // Add cke_maximized class.\r
-                                                       container.addClass( 'cke_maximized' );\r
                                                }\r
                                                else if ( this.state == CKEDITOR.TRISTATE_ON )  // Restore from fullscreen if the state is on.\r
                                                {\r