-
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
Text widget renders large empty space #33123
Comments
What theme are you using? Doesn't seem to happen in TT1. |
In TwentyTwenty for instance. |
I can't reproduce on either Chrome or Firefox using either TwentyTwenty or TT1. I know @kevin940726 couldn't reproduce this one either. |
Let's reopen if we figure out how to reproduce it reliably 🙂 |
I can consistently reproduce this in Safari, using the steps in the description, TwentyTwewntyOne theme, and the standard text widget, using WordPress 5.8 branch and no Gutenberg plugin. |
Aha, Safari! Added to Needs dev. If the fix is non-trivial we should punt this to 5.8.1 as it is late in the release cycle. |
This seems to be related to the PR #32260 I'm working on, and I also forgot to test it in Safari 😅. I'll take a look. |
I just pushed a commit to #32260 hopefully will fix this issue. The issue seems to be that Safari for some reasons will grow an iframe to an unusual height if it's loaded when hidden (inside collapsed widget area). The solution is to only set the height once it's loaded. It works in my case, but I'm not sure if it solves all the issues here, so please help test it ;). |
When upgrading from a site that used text widgets, sometimes these text widgets render a preview containing a large empty space. In TwentyTwenty the space is in all widget areas, in other themes, the space is only in the inactive widgets area.
To reproduce
Screenshots
text-widget-space.mp4
Expected behavior
The text widget to render only its contents.
The text was updated successfully, but these errors were encountered: