react-map-gl icon indicating copy to clipboard operation
react-map-gl copied to clipboard

[Bug] Fullscreen map does not cover all the viewport when tab is already in fullscreen mode.

Open Stouffi opened this issue 2 years ago • 2 comments

Description

When browsing in full screen mode, activating the full screen control on the map will show the map not resized within full screen viewport.

Expected Behavior

The map should resize to cover the entire viewport.

Steps to Reproduce

This bug is reproducible at https://visgl.github.io/react-map-gl/examples/controls using Chrome 119.

  1. Enable fullscreen mode at the browser window level (From the Google Chrome menu bar, Select View then Enter Full Screen).
  2. Click the Enter fullscreen button on the map.
  3. The map will not be resized and will not cover the viewport.

Please note that the bug is not reproducible when DevTools is open

Environment

Also reproducible with framework version and map library used by example at https://visgl.github.io/react-map-gl/examples/controls

Logs

The bug is not reproducible when DevTools is open.

Stouffi avatar Nov 20 '23 16:11 Stouffi

Hmm interesting, adding onto this as I tested on Safari & FireFox as well and it is not reproducible. Only in Chrome. Leads me to believe this is a potential CSS bug with rendering on the V8 engine as WebKit and Gecko engines are able to handle this.

faraz-b avatar Jul 07 '24 06:07 faraz-b

I came here today to report this issue, but I see it’s already been noted. My company would really appreciate a fix for it.

PauloJorgeS avatar Aug 09 '24 14:08 PauloJorgeS

I can no longer reproduce this issue with the latest website: https://visgl.github.io/react-map-gl/examples/mapbox/controls I do want to note that the website updated to mapbox-gl 3.9.0, maybe something changed on the Mapbox side?

Pessimistress avatar Feb 04 '25 18:02 Pessimistress