Skip to content
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

Resizing image to be larger than container breaks layout #13220

Closed
hedgefield opened this issue Jan 7, 2019 · 1 comment
Closed

Resizing image to be larger than container breaks layout #13220

hedgefield opened this issue Jan 7, 2019 · 1 comment
Labels
[Block] Image Affects the Image Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended

Comments

@hedgefield
Copy link

Describe the bug
If you change the size of an image via the sidebar to be larger than the content/block width, it breaks out of the layout and starts overlapping other blocks.

To Reproduce
Steps to reproduce the behavior:

  1. Add an image block and select an image
  2. Select the image block and open the block settings sidebar
  3. Change the pixel width to something like 2048
  4. The image now breaks out of the bounding box of the block

Expected behavior
That increasing the image size beyond the content width only resizes the image up to that width, and resets the value in the sidebar to match that maximum width.

Screenshots
screen shot 2019-01-07 at 09 55 17

Desktop (please complete the following information):

  • MacOS 10.14.2
  • Chrome 71.0.3578.98
  • Gutenberg plugin 4.7.1 on WP 5.0.2

Additional context
The fact that the block doesn't scale vertically to match the image is also because the image settings are not linked, if you change the width the height doesn't update to match, even though the image itself maintains its proper aspect ratio. But that might be another issue.

@designsimply designsimply added [Type] Bug An existing feature does not function as intended [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Block] Image Affects the Image Block labels Jan 7, 2019
@designsimply
Copy link
Member

Thank you for the clear and concise report! I would like to consolidate this issue with #12168.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants