react-map-gl
react-map-gl copied to clipboard
[Bug] Resizing the window, bugs the Popup's position.
Description
Hello, I've been trying to figure out how to fix this behaviour of the Popup but can't find the right solution, any help will be greatly appreciated.
Here's a recording on the issue:
https://github.com/user-attachments/assets/743edbf9-7d2c-4ab4-a9e0-1375819a09ae
Expected Behavior
The Popup should stay on the same position on the map, regardless of window size.
Steps to Reproduce
Resize the window when the Popup is displayed.
Environment
- Framework version: "react-map-gl": "^7.0.21"
- Map library: "mapbox-gl": "^2.12.0",
- Browser: Arc / Chrome
- OS: MacOS Sonoma 14.6.1 (23G93)
Logs
No response
I do not observe any issue with https://visgl.github.io/react-map-gl/examples/mapbox/controls
Please provide actual code that can be used to reproduce your issue.