Ticket #8348: 8348_2.patch
File 8348_2.patch, 1.3 KB (added by , 9 years ago) |
---|
-
_source/themes/default/theme.js
339 339 { 340 340 var container = this.container, 341 341 contents = CKEDITOR.document.getById( 'cke_contents_' + this.name ), 342 contentsFrame = CKEDITOR.env.webkit && this.document && this.document.getWindow().$.frameElement, 342 343 outer = resizeInner ? container.getChild( 1 ) : container; 343 344 344 345 // Set as border box width. (#5353) 345 346 outer.setSize( 'width', width, true ); 346 347 348 // WebKit needs to refresh the iframe size to avoid rendering issues. (1/2) (#8348) 349 contentsFrame && ( contentsFrame.style.width = '1%' ); 350 347 351 // Get the height delta between the outer table and the content area. 348 352 // If we're setting the content area's height, then we don't need the delta. 349 353 var delta = isContentHeight ? 0 : ( outer.$.offsetHeight || 0 ) - ( contents.$.clientHeight || 0 ); 350 354 contents.setStyle( 'height', Math.max( height - delta, 0 ) + 'px' ); 351 355 356 // WebKit needs to refresh the iframe size to avoid rendering issues. (2/2) (#8348) 357 contentsFrame && ( contentsFrame.style.width = '100%' ); 358 352 359 // Emit a resize event. 353 360 this.fire( 'resize' ); 354 361 };