Image block resizer: layout issues in the editor when an image block follows a left or right aligned image block #65305
Labels
[Block] Image
Affects the Image Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Found while testing #64819 (review):
In the editor, if an image block follows a left or right aligned image block, then the position sizing of the
ResizableBox
appears to affect the layout of images within the canvas, in an unexpected way. I'm not too sure what's going on here, but it seems that the presence of theResizableBox
and how it works creates an inconsistency between the editor and site frontend.While testing this issue out, I thought at first that the issue wasn't present in WP 6.6 without Gutenberg enabled. However, I think it was still present, but a little hidden as the
maxHeight
value in theResizableBox
is usually large enough that it doesn't affect the positioning of the image that follows the left/right aligned one. However with a big enough screen size I could still reproduce the issue.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screengrab running Gutenberg
trunk
2024-09-13.14.22.45.mp4
Screengrab running WP 6.6 without GB enabled
2024-09-13.14.23.31.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: