mapbox / mapbox-gl-geocoder

Geocoder control for mapbox-gl-js using Mapbox Geocoding API
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder/
ISC License
362 stars 181 forks source link

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

Open casertap opened 10 months ago

casertap commented 10 months ago

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 commented 10 months ago

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