-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autogrow width issue #4372
Comments
I can confirm this issue. It was introduced in
Expected: Editor width doesn't change. |
In #4286 there is an explanation why the issue occurs (see |
Based on @Dumluregn comment and tests: it happens only when width is set on a fixed value. |
Also a related issue: #4323 and PR: #4376 Find that I think that So I think I add those cases at first. The thing that makes me curious is a way of taking editor size. There is a method for that in
while plugin makes it only like that: ckeditor4/plugins/autogrow/plugin.js Line 150 in d7c0f1f
Shouldn't test use the same logic as a tested component? |
The ckeditor4/plugins/autogrow/plugin.js Line 150 in d7c0f1f
which is independent of Next it's going to: ckeditor4/core/creators/themedui.js Line 276 in 6e145e4
and call ckeditor4/core/creators/themedui.js Line 295 in 6e145e4
which always assume width is border-box (last true argument).
It leads to: Line 2249 in 6e145e4
This method decrease provided width by margin and padding size. Line 2252 in 6e145e4
Summary: |
Closed in #4393 |
Hi,
I am trying to use the Autogrow plugin, I set the height "CKEDITOR.config.height = 150;" and width "CKEDITOR.config.width = '600';". Then I fill with the content so that the height matches, at this point the whole editor changes the width to a smaller one. Each new line reduces the width by 2px.
The text was updated successfully, but these errors were encountered: