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

Popovers and Tooltips are wrongly positioned for UI elements inside iframe #48398

Closed
yupal opened this issue Feb 24, 2023 · 1 comment · Fixed by #48402
Closed

Popovers and Tooltips are wrongly positioned for UI elements inside iframe #48398

yupal opened this issue Feb 24, 2023 · 1 comment · Fixed by #48402
Assignees

Comments

@yupal
Copy link

yupal commented Feb 24, 2023

Description

Tooltips and Popovers are wrongly positioned when you hover over UI elements inside the block editor iframe.
This happens inside both the page and theme editor. On popovers that use the getAnchorRect this issue is not present, but it can be seen for example on the default block appender.

Step-by-step reproduction instructions

  1. Open the block editor for pages
  2. Go to tablet / mobile mode
  3. Insert for example a columns block and hover over the variations.
  4. Please note the tooltip position.

OR

  1. Open the block editor for pages
  2. Go to tablet / mobile mode
  3. Select a column and click on the inserter at the bottom-right of the column
  4. Please note the popup position

Screenshots, screen recording, code snippet

Example of tooltip issue:
image

Example of popover issue:
image

Environment info

WordPress 6.2-Beta3 with no other plugin

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@yupal yupal changed the title Tooltips are wrongly positioned when blocks are inside iframe Tooltips are wrongly positioned for UI elements inside iframe Feb 24, 2023
@yupal yupal changed the title Tooltips are wrongly positioned for UI elements inside iframe Popovers and Tooltips are wrongly positioned for UI elements inside iframe Feb 24, 2023
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Feb 24, 2023
@yupal
Copy link
Author

yupal commented Mar 14, 2023

I think this issue is still reproducing on WP6.2-RC1

Here are some examples inside the Site Editor where the quick inserter is wrongly displayed:

On desktop:
image

On mobile:
image

I tested it on WP6.2-RC1 with no other plugin installed, and with the Twenty Twenty-Three theme

@priethor priethor removed the [Status] In Progress Tracking issues with work in progress label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants