X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fskins%2Foffice2003%2Fskin.js;h=09d52432a3aef395a9a98dedac1bd626b45aeaa3;hb=4e90e78dc97789709ee7404359a5517540c27553;hp=92c8205516c70db6adab389cff973af206ccaacc;hpb=9afde8772159bd3436f1f5b7862960307710ae5a;p=ckeditor.git diff --git a/_source/skins/office2003/skin.js b/_source/skins/office2003/skin.js index 92c8205..09d5243 100644 --- a/_source/skins/office2003/skin.js +++ b/_source/skins/office2003/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 */ @@ -36,30 +36,32 @@ CKEDITOR.skins.add( 'office2003', (function() height : height + 'px' }); - if ( !CKEDITOR.env.ie ) + if ( !CKEDITOR.env.ie || CKEDITOR.env.ie9Compat ) return; // Fix the size of the elements which have flexible lengths. var fixSize = 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 ); }; setTimeout( fixSize, 100 );