Skip to content
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

Closed
draganescu opened this issue Jul 1, 2021 · 8 comments · Fixed by #33191
Closed

Text widget renders large empty space #33123

draganescu opened this issue Jul 1, 2021 · 8 comments · Fixed by #33191
Assignees
Labels
Browser Issues Issues or PRs that are related to browser specific problems [Feature] Widgets Screen The block-based screen that replaced widgets.php. [Package] Edit Widgets /packages/edit-widgets [Type] Bug An existing feature does not function as intended

Comments

@draganescu
Copy link
Contributor

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

  1. Use the latest WordPress 5.8 RC
  2. Install the Classic Widgets plugin
  3. Activate the Classic Widgets plugin
  4. Go to Appearance > Widgets
  5. Add a text widget and put content in it
  6. Deactivate the Classic Widgets plugin
  7. Go to Appearance > Widgets
  8. Observe the text widget
  9. If it renders correctly try moving it into another widget area, then refreshing the page

Screenshots

text-widget-space.mp4

Expected behavior

The text widget to render only its contents.

@draganescu draganescu added [Type] Bug An existing feature does not function as intended [Feature] Widgets Screen The block-based screen that replaced widgets.php. Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta [Package] Edit Widgets /packages/edit-widgets labels Jul 1, 2021
@noisysocks
Copy link
Member

What theme are you using? Doesn't seem to happen in TT1.

@noisysocks noisysocks removed the Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Jul 1, 2021
@draganescu
Copy link
Contributor Author

In TwentyTwenty for instance.

@adamziel
Copy link
Contributor

adamziel commented Jul 2, 2021

I can't reproduce on either Chrome or Firefox using either TwentyTwenty or TT1. I know @kevin940726 couldn't reproduce this one either.

@noisysocks
Copy link
Member

noisysocks commented Jul 5, 2021

Let's reopen if we figure out how to reproduce it reliably 🙂

@draganescu
Copy link
Contributor Author

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.

@draganescu draganescu reopened this Jul 5, 2021
@noisysocks noisysocks added the Browser Issues Issues or PRs that are related to browser specific problems label Jul 5, 2021
@noisysocks
Copy link
Member

noisysocks commented Jul 5, 2021

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.

@kevin940726 kevin940726 self-assigned this Jul 5, 2021
@kevin940726
Copy link
Member

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.

@kevin940726
Copy link
Member

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 ;).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Browser Issues Issues or PRs that are related to browser specific problems [Feature] Widgets Screen The block-based screen that replaced widgets.php. [Package] Edit Widgets /packages/edit-widgets [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants