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

map height #92

Open
Thebigbignooby opened this issue Aug 9, 2023 · 1 comment
Open

map height #92

Thebigbignooby opened this issue Aug 9, 2023 · 1 comment

Comments

@Thebigbignooby
Copy link

Thanks for this library!

I understand the map can be displayed by setting a fixed height in pixels, however this is inconvenient... is there no way to have it take the full height of the parent container?

can this be fixed?
what seems to be causing this behaviour?

@woss
Copy link

woss commented Jan 6, 2024

If your parent div has width:100% then your maps will respect that, but if the parent of the parent has the same it will be 0 since that is how things work. The best way is to use the vh measure. for example, you can set the parent container to be height: 70vh, and your maps will show.

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

2 participants