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

Fix: Image resizer does not work if only one dimension is changed #16398

Conversation

jorgefilipecosta
Copy link
Member

Description

Fixes: #12278

Image sizes were only applied to the editor if both width and height were set. This PR applies the sizes even if just one of the dimensions is set.

How has this been tested?

I added an image, I went to the image dimensions setting, I changed the width by writing a new number. I verified the new dimension was applied. On master, nothing happens until the height is also set, but the attribute is changed anyway and when we view the post on the frontend the dimension is applied.

@jorgefilipecosta jorgefilipecosta added [Type] Bug An existing feature does not function as intended [Block] Image Affects the Image Block labels Jul 2, 2019
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well 👍

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 [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pixel-sizing only works after setting image size percentage
2 participants