Opened 14 years ago
Last modified 13 years ago
#6308 closed Bug
"vertical" resize_dir still sets width CSS — at Initial Version
Reported by: | Leonard Lee | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.6.3 |
Component: | UI : Toolbar | Version: | 3.4 |
Keywords: | Cc: | mcianc@… |
Description
When resize_dir is configured to be "vertical", only vertical size changes should be allowed. However, after some vertical resizing, a width CSS style (in px) is set on the editor span. For example:
style="width:1019px"
This is a problem if the editor is supposed to be 100% wide. The editor is now stuck at being the same width, even when the window/container resizes.
The same issue probably applies to "horizontal" resize_dir, but with a height CSS style.
Both issues can be fixed by changing the editor resize function call in resize/plugin.js to:
editor.resize( resizeHorizontal ? width : null, resizeVertical ? height : null );
This will cause the width/height to only be changed when necessary.