JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.1
[ckeditor.git] / _source / skins / office2003 / skin.js
index 92c8205..10309ba 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -43,23 +43,25 @@ CKEDITOR.skins.add( 'office2003', (function()
                                var fixSize = function()\r
                                        {\r
                                                var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ),\r
-                                                       body = innerDialog.getChild( 0 );\r
+                                                       body = innerDialog.getChild( 0 ),\r
+                                                       bodyWidth = body.getSize( 'width' );\r
+                                               height += body.getChild( 0 ).getSize( 'height' ) + 1;\r
 \r
                                                // tc\r
                                                var el = innerDialog.getChild( 2 );\r
-                                               el.setStyle( 'width', ( body.$.offsetWidth ) + 'px' );\r
+                                               el.setSize( 'width', bodyWidth );\r
 \r
                                                // bc\r
                                                el = innerDialog.getChild( 7 );\r
-                                               el.setStyle( 'width', ( body.$.offsetWidth - 28 ) + 'px' );\r
+                                               el.setSize( 'width', bodyWidth - 28 );\r
 \r
                                                // ml\r
                                                el = innerDialog.getChild( 4 );\r
-                                               el.setStyle( 'height', ( height + body.getChild(0).$.offsetHeight ) + 'px' );\r
+                                               el.setSize( 'height', height );\r
 \r
                                                // mr\r
                                                el = innerDialog.getChild( 5 );\r
-                                               el.setStyle( 'height', ( height + body.getChild(0).$.offsetHeight ) + 'px' );\r
+                                               el.setSize( 'height', height );\r
                                        };\r
                                setTimeout( fixSize, 100 );\r
 \r