Skip to content

Image with size breaks out of editor block #12168

@johngodley

Description

@johngodley

I'm not sure if this is a bug or expected behaviour, but reporting it as a bug anyway.

If you add an image to a post and set the size of that image to anything other than the default, it breaks out of the block. The image displays as expected on the front end (sized accordingly)

Here's an image that was dropped into the editor:

edit_post_ _wordpress_latest_ _wordpress

If I open the block options and change the dimensions:

edit_post_ _wordpress_latest_ _wordpress

The image has now broken outside of the block:

edit_post_ _wordpress_latest_ _wordpress

Pressing 'reset' on the image dimensions brings the image back inside the block.

Expected behavior
The image to stay inside the block

Mac & Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] ImageAffects the Image Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions