-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed as not planned
Closed as not planned
Copy link
Labels
Needs TestingNeeds further testing to be confirmed.Needs further testing to be confirmed.[Block] PatternAffects the Patterns BlockAffects the Patterns Block[Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.Gives the original author opportunity to update before closing. Can be reopened as needed.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
What?
Reproduced in Gutenberg v17.6.3 on Chrome and Firefox, MacOS.
On the editor's pattern inserter, extra vertical padding is added to the bottom of the pattern preview of a Row block with images when "Allow to wrap to multiple lines" is enabled.
| Unexpected aspect ratio | Expected result |
|---|---|
![]() |
![]() |
The issue is only reproducible when the option "Allow to wrap to multiple lines" is enabled.
Here is a screenshot when that option is disabled:
On Chrome, the development tools must be closed to reproduce the issue.
On Firefox, the dev tools can stay open.
Why?
It seems there is a bug in how the aspect ratio is calculated. Maybe a race condition?
That extra padding is not expected and can confuse users on the actual pattern height.
How?
Debugging how the aspect ratio is calculated. See
| const aspectRatio = contentHeight |
Metadata
Metadata
Assignees
Labels
Needs TestingNeeds further testing to be confirmed.Needs further testing to be confirmed.[Block] PatternAffects the Patterns BlockAffects the Patterns Block[Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.Gives the original author opportunity to update before closing. Can be reopened as needed.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended





