X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fskins%2Fv2%2Fskin.js;h=4c51c17938ac18d334d16fe80a15ef14325d65f2;hp=2abbbcfe8ccc952d83842b6d63dd9e112036b6d0;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hpb=9afde8772159bd3436f1f5b7862960307710ae5a diff --git a/_source/skins/v2/skin.js b/_source/skins/v2/skin.js index 2abbbcf..4c51c17 100644 --- a/_source/skins/v2/skin.js +++ b/_source/skins/v2/skin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -43,23 +43,25 @@ CKEDITOR.skins.add( 'v2', (function() setTimeout( function() { var innerDialog = dialog.parts.dialog.getChild( [ 0, 0, 0 ] ), - body = innerDialog.getChild( 0 ); + body = innerDialog.getChild( 0 ), + bodyWidth = body.getSize( 'width' ); + height += body.getChild( 0 ).getSize( 'height' ) + 1; // tc var el = innerDialog.getChild( 2 ); - el.setStyle( 'width', ( body.$.offsetWidth ) + 'px' ); + el.setSize( 'width', bodyWidth ); // bc el = innerDialog.getChild( 7 ); - el.setStyle( 'width', ( body.$.offsetWidth - 28 ) + 'px' ); + el.setSize( 'width', bodyWidth - 28 ); // ml el = innerDialog.getChild( 4 ); - el.setStyle( 'height', ( height + body.getChild(0).$.offsetHeight ) + 'px' ); + el.setSize( 'height', height ); // mr el = innerDialog.getChild( 5 ); - el.setStyle( 'height', ( height + body.getChild(0).$.offsetHeight ) + 'px' ); + el.setSize( 'height', height ); }, 100 ); });