- CKEDITOR.dialog.on( 'resize', function( evt )\r
- {\r
- var data = evt.data,\r
- width = data.width,\r
- height = data.height,\r
- dialog = data.dialog,\r
- contents = dialog.parts.contents;\r
-\r
- if ( data.skin != 'kama' )\r
- return;\r
-\r
- contents.setStyles(\r
- {\r
- width : width + 'px',\r
- height : height + 'px'\r
- });\r
-\r
- // Fix the size of the elements which have flexible lengths.\r
- setTimeout( function()\r
- {\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
- el.setStyle( 'width', ( body.$.offsetWidth ) + 'px' );\r