Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

height = 100% no works. #109

Open
tecnoterabyte opened this issue Mar 29, 2018 · 2 comments
Open

height = 100% no works. #109

tecnoterabyte opened this issue Mar 29, 2018 · 2 comments
Labels

Comments

@tecnoterabyte
Copy link

Hi when I set the height setting to 100% it does not work,

$map = new Map([
    'center' => $coord,
    'zoom' => 5,
    'height' => '100%',
    'width'  => '100%',
]);

By changing the CSS for browser and changing position relative to absolute it works, some idea of what happens,

Regards,

@tonydspaniard
Copy link
Member

That could be because of the parent layer

@tecnoterabyte
Copy link
Author

Solution Work Perfect StackOverflow:

#gmap0-map-canvas_container {
    position: relative;
}

#gmap0-map-canvas {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
}

I'm working with Bootstrap 4 and the Theme Dashboard Adminator,

Thks,

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

No branches or pull requests

2 participants