mapbox-gl-geocoder icon indicating copy to clipboard operation
mapbox-gl-geocoder copied to clipboard

Padding and margin issues at bottom-right. Increasing the viewport size and pushing the copyright down.

Open casertap opened this issue 1 year ago • 1 comments

Placing the component with config

    const geocoder = new MapboxGeocoder({
      accessToken: mapboxgl.accessToken,
      mapboxgl: mapboxgl,
      collapsed: true,
      flyTo: { duration: 0 },
      clearOnBlur: true,
    });
    map.addControl(geocoder, "bottom-right");

will creating a padding css issue that will create an horizontal scroll and some white background on the right.

Screenshot from 2023-11-07 00-17-23

expanding it using the mouse would fix the right padding but create a bottom margin that is pushing the copyright out of the map and create a vertical scroll.

Screenshot from 2023-11-07 00-16-44

casertap avatar Nov 06 '23 13:11 casertap

It's working fine in production build. The issue only happen in dev mode.

casertap avatar Nov 07 '23 12:11 casertap