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

[Bug]: Chart tooltip window resizes in error #1365

Open
wadhwamatic opened this issue Nov 9, 2024 · 1 comment · May be fixed by #1328
Open

[Bug]: Chart tooltip window resizes in error #1365

wadhwamatic opened this issue Nov 9, 2024 · 1 comment · May be fixed by #1328
Assignees
Labels
bug Something isn't working triage to be triaged for next action

Comments

@wadhwamatic
Copy link
Member

What happened?

If you chart tooltip window is open and you then drag the map, the window often reduces its width by half, cutting off content.

Steps to replicate:

  1. Country = Cambodia
  2. Open layer: Flood > Early warning > EWS 1294
  3. Click on a point
  4. After the tooltip window is open, drag the map

Note, I've not been able to replicate this for other tooltip charts (10-day rainfall, NDVI)

Which country / deployment are you running?

Cambodia / main

Also observed in PR 1332 when using the Google Floods layers

Add a screenshot (if relevant)

Screenshot 2024-11-08 at 17 02 20
@wadhwamatic wadhwamatic added bug Something isn't working triage to be triaged for next action labels Nov 9, 2024
@gislawill
Copy link
Collaborator

It looks like mapbox-gl is adding this automatically (on-purpose). We can prevent this by adding a max-width none !important. I'll include in #1328 👍

mapbox/mapbox-gl-js#1862

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage to be triaged for next action
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants