Fix scrolling when editing a template part#45176
Fix scrolling when editing a template part#45176michalczaplinski wants to merge 1 commit intotrunkfrom
Conversation
|
Size Change: +5 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
|
Adding @talldan and @kevin940726 as they were suggested by github and/or should definitely have a good idea about whether this CSS fix is appropriate and added to the right file/package |
|
Thanks for working on this. I don't think this is the right fix, as it can cause double scrollbars in some situations (it seems noticeable with the 'tablet' preview when viewing a template): The scrollbars should appear as this PR description shows - #38019. It'd be interesting to find out why this one regressed. |
It does look like it originated from one of my PRs! (#43408). The iframe is supposed to be the element with the scrollbar, but that PR always sets the iframe to the content height. I've put together a fix - #45189
|
|
Closing this in favour of #45189 |

What?
Fixing #45084
Why?
When in focus mode, it was not possible to scroll when editing a Template Part.
How?
Adding a
overflow: autoon theis-focus-modeCSS class.This should override the
overflow: hiddenthat is set in:gutenberg/packages/edit-site/src/components/editor/style.scss
Line 35 in 26b91a6
Testing Instructions
Screenshots or screencast
2022-10-20_12-46-39.mp4