X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fwsc%2Fdialogs%2Fwsc.js;h=ecadaaf8b68dedeb4c1718929ae28532dc19549b;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=fbc2f7798ef3d38c6a1c3781134d93979dac961e;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/plugins/wsc/dialogs/wsc.js b/_source/plugins/wsc/dialogs/wsc.js index fbc2f77..ecadaaf 100644 --- a/_source/plugins/wsc/dialogs/wsc.js +++ b/_source/plugins/wsc/dialogs/wsc.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, 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 */ @@ -23,7 +23,7 @@ CKEDITOR.dialog.add( 'checkspell', function( editor ) ' style="display:none;color:red;font-size:16px;font-weight:bold;padding-top:160px;text-align:center;z-index:11;">' + '' + html : '' } ] } ] }; }); + +// Expand the spell-check frame when dialog resized. (#6829) +CKEDITOR.dialog.on( 'resize', function( evt ) +{ + var data = evt.data, + dialog = data.dialog; + + if ( dialog._.name == 'checkspell' ) + { + var content = dialog.getContentElement( 'general', 'content' ).getElement(), + iframe = content && content.getChild( 2 ); + + iframe && iframe.setSize( 'height', data.height ); + iframe && iframe.setSize( 'width', data.width ); + } +});