image2: resizing to minimum size doesn't update dialogs values #2672
Labels
plugin:image2
The plugin which probably causes the issue.
status:confirmed
An issue confirmed by the development team.
target:minor
Any docs related issue that can be merged into a master or major branch.
type:bug
A bug.
Milestone
Type of report
Bug
Provide detailed reproduction steps (if any)
http://localhost:1030/tests/plugins/image2/manual/resizer
Expected result
Actual result
width
andheight
are unset.Other details
Look at code:
https://github.com/ckeditor/ckeditor-dev/blob/7c937e875c35b9bd333fcc5de9c0910a2584ad34/plugins/image2/plugin.js#L1317-L1322
This is the part of
mousemove
handler. When mouse moves decreasing image size, attributes of img element are changed, butwidget.data
is updated inmouseup
handler only ifupdateData
is set to true. So in this scenario image size is changed, but the second one of dimensions is lower than allowedupdateData
is overwritten withfalse
and thus data is not updated, and dialog shows previews value.The text was updated successfully, but these errors were encountered: