/*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
if ( resizeVertical )\r
height = Math.max( config.resize_minHeight, Math.min( internalHeight, config.resize_maxHeight ) );\r
\r
- editor.resize( width, height );\r
+ // DO NOT impose fixed size with single direction resize. (#6308)\r
+ editor.resize( resizeHorizontal ? width : null, height );\r
}\r
\r
function dragEndHandler ( evt )\r
} );\r
\r
/**\r
- * The minimum editor width, in pixels, when resizing it with the resize handle.\r
- * Note: It fallbacks to editor's actual width if that's smaller than the default value.\r
+ * The minimum editor width, in pixels, when resizing the editor interface by using the resize handle.\r
+ * Note: It falls back to editor's actual width if it is smaller than the default value.\r
* @name CKEDITOR.config.resize_minWidth\r
* @type Number\r
* @default 750\r
*/\r
\r
/**\r
- * The minimum editor height, in pixels, when resizing it with the resize handle.\r
- * Note: It fallbacks to editor's actual height if that's smaller than the default value.\r
+ * The minimum editor height, in pixels, when resizing the editor interface by using the resize handle.\r
+ * Note: It falls back to editor's actual height if it is smaller than the default value.\r
* @name CKEDITOR.config.resize_minHeight\r
* @type Number\r
* @default 250\r
*/\r
\r
/**\r
- * The maximum editor width, in pixels, when resizing it with the resize handle.\r
+ * The maximum editor width, in pixels, when resizing the editor interface by using the resize handle.\r
* @name CKEDITOR.config.resize_maxWidth\r
* @type Number\r
* @default 3000\r
*/\r
\r
/**\r
- * The maximum editor height, in pixels, when resizing it with the resize handle.\r
+ * The maximum editor height, in pixels, when resizing the editor interface by using the resize handle.\r
* @name CKEDITOR.config.resize_maxHeight\r
* @type Number\r
* @default 3000\r
*/\r
\r
/**\r
- * Whether to enable the resizing feature. If disabled the resize handler will not be visible.\r
+ * Whether to enable the resizing feature. If this feature is disabled, the resize handle will not be visible.\r
* @name CKEDITOR.config.resize_enabled\r
* @type Boolean\r
* @default true\r
*/\r
\r
/**\r
- * The directions to which the editor resizing is enabled. Possible values\r
- * are "both", "vertical" and "horizontal".\r
+ * The dimensions for which the editor resizing is enabled. Possible values\r
+ * are <code>both</code>, <code>vertical</code>, and <code>horizontal</code>.\r
* @name CKEDITOR.config.resize_dir\r
* @type String\r
* @default 'both'\r