-
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/expanding thumbnails #38181
base: trunk
Are you sure you want to change the base?
Fix/expanding thumbnails #38181
Conversation
For more information about the For example, |
Thanks so much for this PR.
Interesting. It sounds like this might potentially explain the expanding vh unit thumbnails: the scale prop combined with the height provides enough opportunity for browser rounding errors that a 100vh element inside can grow a fraction, prompting a new rounding error, and so. Is that your impression as well? We have a CSS bandaid in place. But for any future fixes, ideally we can fix the issue in a way so that no CSS can break it, because themes can load anything into the editing canvas. |
Unfortunately, this doesn't solve the expanding thumbnails issue. This is just the way it should be.
That's for sure. I left the |
Nice, thank you for the clarification. I do still think we need to look at the source reason for why there is what appears to be a race condition with the expanding patterns, and fix that, separately. But as an improvement and code improvement, I think this one would be great to get wide testing across a bunch of themes, so we could land it. Thank you! |
Thank you, @jasmussen The following image shows the reason for the race condition with the expanding patterns. The race condition occurs with full-height blocks with vertical margins and also blocks with a height over than 100vh, so it seems that we still need to set a max height to the viewport ( |
That's a really useful illustration, thanks a ton! CC: @Mamaduka It seems like:
|
…al expanding and horizontal scrollbars
2ffac0f
to
e48e5ce
Compare
I would like to split my PR because it had two different topics. I moved the This PR doesn't completely fix the expanding issue, but it makes pattern preview look better. |
Per the latest change (thank you), this is a small PR that brings important improvements (see this comment, notably), and I'd love for us to land it and backport it. The extra CSS, to me, looks good enough, and I'd be happy to give this a green check, but I'd love a quick sanity check. Maybe another look, @Mamaduka? Or perhaps some people I know have pattern skills, such as @MaggieCabrera or @scruffian? |
Thanks for splitting changes into to PRs, @ixkaito. The changes test well for me. But it would be great to get feedback from Maggie and Ben. |
Is this PR still applicable or useful since the Issue that it addresses - #34729 has been closed? |
Yes, it is my impression that this PR is still needed. The reason why is well illustrated in this comment, but essentially the worst aspect of the bug has been fixed, but this PR offers enhancements to the general behavior. |
Description
Resolves #34729.
How has this been tested?
Tested with TT2 and TT1.
Screenshots
Types of changes
Bugfix
Checklist:
*.native.js
files for terms that need renaming or removal).