-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Aspect Ratio: Reset height when selecting the original aspect ratio #53339
Conversation
Size Change: +96 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
Flaky tests detected in aeb07db. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5761570132
|
The failing test is accurate.
If only the height is set, it shouldn't be cleared because the size is defined by the height. EDIT: I think I fixed it. |
If 'Original' is selected, nextAspectRatio is null and still needs to remove the height
Thanks! |
What?
Prevent images from stretching when resetting back to the original aspect ratio.
Why?
On trunk, if an image has a custom aspect ratio, when you select the original aspect ratio the height and with are maintained, which makes the image stretched.
How?
If the user selected the original aspect ratio we remove the height definition, allowing the image to rescale naturally.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast