+ // We must adjust first the width or IE6 could include extra lines in the height computation\r
+ var widthNode = block.element.$;\r
+\r
+ if ( CKEDITOR.env.gecko || CKEDITOR.env.opera )\r
+ widthNode = widthNode.parentNode;\r
+\r
+ if ( CKEDITOR.env.ie )\r
+ widthNode = widthNode.document.body;\r
+\r
+ var width = widthNode.scrollWidth;\r
+ // Account for extra height needed due to IE quirks box model bug:\r
+ // http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug\r
+ // (#3426)\r
+ if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && width > 0 )\r
+ width += ( target.$.offsetWidth || 0 ) - ( target.$.clientWidth || 0 );\r
+ // A little extra at the end.\r
+ // If not present, IE6 might break into the next line, but also it looks better this way\r
+ width += 4 ;\r
+\r
+ target.setStyle( 'width', width + 'px' );\r
+\r
+ // IE doesn't compute the scrollWidth if a filter is applied previously\r
+ block.element.addClass( 'cke_frameLoaded' );\r
+\r