-
Notifications
You must be signed in to change notification settings - Fork 16
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
How can we get rid of the scrollbars on the map #350
Comments
I believe the only cases where scrollbars would show up is when the map is covering the entire document, such as in the Ottawa Restaurants experiment. This is expected, because the size of the map element ( There are different ways to go about ensuring scrollbars don't show up (together with
|
Thanks for these suggestions, I'll play around with them and see if I can get a better feel for it. |
While we could make the map viewers Also, I see that there are still scrollbars happening in the experiments repo, I'll fix those. |
To remove the scrollbars in Firefox, |
The following styles should ensure a map that isn't larger or wider than 100% should never cause scrollbars: *, ::before, ::after {
box-sizing: border-box;
}
body {
margin: 0;
}
mapml-viewer {
max-width: 100%;
vertical-align: middle;
} |
Closing per #350 (comment). To be documented (Maps4HTML/web-map-doc#26). |
One difference between *, ::before, ::after {
box-sizing: border-box;
} is not unset for For this reason we should set |
For some reason, scrollbars show up on some maps, but not others, and I'm wondering if we can banish them, since the primary means of navigating the map is pan/zoom provide by other means.
The text was updated successfully, but these errors were encountered: