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

Map block: blocks overlapping in editor #39722

Closed
coder-karen opened this issue Oct 10, 2024 · 2 comments · Fixed by #39744
Closed

Map block: blocks overlapping in editor #39722

coder-karen opened this issue Oct 10, 2024 · 2 comments · Fixed by #39744
Assignees
Labels
[Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Type] Bug When a feature is broken and / or not performing as intended

Comments

@coder-karen
Copy link
Contributor

coder-karen commented Oct 10, 2024

Impacted plugin

Jetpack

Quick summary

There is an issue with the display of the Map block on self-hosted sites, in the editor. New blocks added directly underneath will overlap with it.

Steps to reproduce

  • On a self-hosted Jetpack site, add a Map block, and then attempt to add any other block directly underneath
  • The new block will overlap with the map block - but only in the editor

Image

A clear and concise description of what you expected to happen.

There should be no block overlap with the Map block in the editor.

What actually happened

Any new block added underneath the Map block overlaps with the block.

Workaround

There is a workaround possible - click on the 'resizable box' handle on the block, which auto sets the height. That is the small blue circle visible when selecting the block, and the horizontal line associated with it if visible.

Image

Platform (Simple and/or Atomic)

Self-hosted

Logs or notes

This is only an issue for self-hosted sites as it's only an issue when we're using Mapbox. Setting document.cookie = "map_provider=mapkit"; in the browser console will switch the map to Mapkit, and the issue is then not present. Setting document.cookie = "map_provider=mapbox"; will switch it back.

@coder-karen coder-karen added [Type] Bug When a feature is broken and / or not performing as intended Needs triage Ticket needs to be triaged labels Oct 10, 2024
@github-actions github-actions bot added [Status] Priority Review Triggered The guild in charge of triage has been notified of this issue in Slack [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] High labels Oct 10, 2024
@coder-karen coder-karen removed the [Status] Priority Review Triggered The guild in charge of triage has been notified of this issue in Slack label Oct 10, 2024
@anomiex
Copy link
Contributor

anomiex commented Oct 10, 2024

I'm seeing this on 6.6.2 as well.

Bisect turns up #38956 as the culprit. Looks like the addition of position: absolute in that PR broke <ResizableBox> having height: 'auto'.

@coder-karen coder-karen changed the title Map block: WordPress 6.7 compatibility issue - blocks overlapping in editor Map block: blocks overlapping in editor Oct 11, 2024
@coder-karen coder-karen added [Pri] Normal and removed [Pri] High Needs triage Ticket needs to be triaged labels Oct 11, 2024
@coder-karen
Copy link
Contributor Author

Great catch @anomiex and thanks for the quick sleuthing.

Turns out there is an easy workaround in the meantime which is to click on the 'resizable box' handle, which sets defined height and auto fits to the map. Which I must have clicked when testing on 6.6.2. Updated the title and description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants