Ticket #7230: 7230.patch
File 7230.patch, 1.5 KB (added by , 14 years ago) |
---|
-
_source/plugins/dialog/plugin.js
622 622 */ 623 623 resize : (function() 624 624 { 625 return function( width, height )625 return function( width, height, force ) 626 626 { 627 if ( this._.contentSize && this._.contentSize.width == width && this._.contentSize.height == height )627 if ( ( force === undefined || force === false ) && this._.contentSize && this._.contentSize.width == width && this._.contentSize.height == height ) 628 628 return; 629 629 630 630 CKEDITOR.dialog.fire( 'resize', … … 1049 1049 updateStyle : function() 1050 1050 { 1051 1051 // If only a single page shown, a different style is used in the central pane. 1052 this.parts.dialog[ ( this._.pageCount === 1 ? 'add' : 'remove' ) + 'Class' ]( 'cke_single_page' ); 1052 if ( this._.pageCount === 1 ) 1053 { 1054 if ( !this.parts.dialog.hasClass( 'cke_single_page' ) ) 1055 { 1056 this.parts.dialog.addClass( 'cke_single_page' ); 1057 if ( CKEDITOR.env.ie ) 1058 this.resize( this._.contentSize.width, this._.contentSize.height, true ); 1059 } 1060 } 1061 else if ( this.parts.dialog.hasClass( 'cke_single_page' ) ) 1062 { 1063 this.parts.dialog.removeClass( 'cke_single_page' ); 1064 if ( CKEDITOR.env.ie ) 1065 this.resize( this._.contentSize.width, this._.contentSize.height, true ); 1066 } 1053 1067 }, 1054 1068 1055 1069 /**