-
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
Fix scrolling when editing a template part #45176
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: auto
on theis-focus-mode
CSS class.This should override the
overflow: hidden
that 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