From fac33dd9df4c7bf81a33a9a01899defcbd1259b3 Mon Sep 17 00:00:00 2001 From: orionna319 <85230052+orionna319@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:42:12 +0800 Subject: [PATCH] fix: `FullscreenControl` is not fullscreen until resizing window (#726) --- src/components/RunMap/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/RunMap/index.tsx b/src/components/RunMap/index.tsx index 06754d2f0aa..c5cc8dddf39 100644 --- a/src/components/RunMap/index.tsx +++ b/src/components/RunMap/index.tsx @@ -136,6 +136,7 @@ const RunMap = ({ mapStyle="mapbox://styles/mapbox/dark-v10" ref={mapRefCallback} mapboxAccessToken={MAPBOX_TOKEN} + onRender={(event) => event.target.resize()} >