Autogrow plugin causing width of editor's container to be set to 0px #4286
Labels
core
The issue is caused by the editor core code.
good first issue
Relatively easy to fix. This is a perfect issue if you are willing to create a Pull Request.
regression
This issue is a regression.
status:confirmed
An issue confirmed by the development team.
type:bug
A bug.
Milestone
Type of report
Bug
Provide detailed reproduction steps (if any)
Expected result
The length of the editor should increase and the width should not change
Screenshot:
Actual result
The width of the container (div with id='cke_editor1') is set to 0px and becomes unusable
Screenshot:
Debugging details
4.14.1
has caused this issue to surface: https://github.com/ckeditor/ckeditor4/pull/4010/files?file-filters%5B%5D=.jswidth = convertCssUnitToPx( width );
was introduced, width was an empty string""
and so the next lineouter.setSize( 'width', width, true );
did not actually set the style becausewidth
was not a number.width
is a number (0), it calculates the width size and adjusts based on padding.size
gets set to0 - 2 = -2px
andsetStyle()
is called.setStyle()
doesn't set a negative width so it's a no-op.size
gets set to0px
.setStyle()
is called and the width of the container is then set to0px
.Other details
4.14.1
and4.15.0
autogrow
The text was updated successfully, but these errors were encountered: