Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
casertap opened this issue Nov 6, 2023 · 1 comment

Comments

@casertap
Copy link

casertap commented Nov 6, 2023

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
Copy link
Author

casertap commented Nov 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant