JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.1
[ckeditor.git] / _source / themes / default / theme.js
index 1e077d4..00219ff 100644 (file)
@@ -285,10 +285,6 @@ CKEDITOR.editor.prototype.getThemeSpace = function( spaceName )
  */\r
 CKEDITOR.editor.prototype.resize = function( width, height, isContentHeight, resizeInner )\r
 {\r
-       var numberRegex = /^\d+$/;\r
-       if ( numberRegex.test( width ) )\r
-               width += 'px';\r
-\r
        var container = this.container,\r
                contents = CKEDITOR.document.getById( 'cke_contents_' + this.name ),\r
                outer = resizeInner ? container.getChild( 1 ) : container;\r
@@ -297,7 +293,8 @@ CKEDITOR.editor.prototype.resize = function( width, height, isContentHeight, res
        // WEBKIT BUG: Webkit requires that we put the editor off from display when we\r
        // resize it. If we don't, the browser crashes!\r
        CKEDITOR.env.webkit && outer.setStyle( 'display', 'none' );\r
-       outer.setStyle( 'width', width );\r
+       // Set as border box width. (#5353)\r
+       outer.setSize( 'width',  width, true );\r
        if ( CKEDITOR.env.webkit )\r
        {\r
                outer.$.offsetWidth;\r