JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0.2
[ckeditor.git] / _source / skins / v2 / skin.js
index 058a5c0..3e93628 100644 (file)
@@ -31,12 +31,12 @@ if ( CKEDITOR.dialog )
                                width = data.width,\r
                                height = data.height,\r
                                dialog = data.dialog,\r
-                               standardsMode = !CKEDITOR.env.quirk;\r
+                               contents = dialog.parts.contents;\r
 \r
                        if ( data.skin != 'v2' )\r
                                return;\r
 \r
-                       dialog.parts.contents.setStyles(\r
+                       contents.setStyles(\r
                                {\r
                                        width : width + 'px',\r
                                        height : height + 'px'\r
@@ -48,9 +48,8 @@ if ( CKEDITOR.dialog )
                        // Fix the size of the elements which have flexible lengths.\r
                        setTimeout( function()\r
                                {\r
-                                       var content = dialog.parts.contents,\r
-                                               body = content.getParent(),\r
-                                               innerDialog = body.getParent();\r
+                                       var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),\r
+                                               body = innerDialog.getChild( 0 );\r
 \r
                                        // tc\r
                                        var el = innerDialog.getChild( 2 );\r