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

Support for "vw" and "vh", also other CSS units. #117

Open
adummy832 opened this issue May 16, 2018 · 1 comment
Open

Support for "vw" and "vh", also other CSS units. #117

adummy832 opened this issue May 16, 2018 · 1 comment

Comments

@adummy832
Copy link

Hi can u provide support for different css units other than "px"?
It could help more devs that don't rely on "px" anymore. TIA

$map = new Map([
    'center' => $coords,
    'zoom' => 5,
    'width' => '100%', ✓
    'height' => '70vh' ??
]);

Useful links:
https://stackoverflow.com/questions/29463318/what-is-the-difference-between-and-vw-in-css

@adummy832
Copy link
Author

adummy832 commented May 16, 2018

Nevermind, I just solved it using traditional CSS.

<style>
    #gmap0-map-canvas {
        width: 100% !important; 
        height: 70vh !important;
    }
</style>

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

No branches or pull requests

1 participant