I understand the inline styles of .leaflet-container are due to the possibility to define the height of our map containers in the backend.
But with responsive design it's often a requirement to set a map's height dynamically depending on the height or width of the browser viewport. Right now we have to use !important statements to override the inline style set by the module.
To avoid this we could allow to leave the height value in the backend empty and providing either a default height via CSS, or leave it at no height at all and give users a hint that they need to set the height in their theme's CSS if they don't fill out the form.
Cheers,
Daniel
Comment | File | Size | Author |
---|---|---|---|
#4 | IPGV&M-new-map-height-spec.png | 120.02 KB | RdeBoer |
Comments
Comment #1
Daniel Wentsch CreditAttribution: Daniel Wentsch commentedComment #2
RdeBoerGreat idea.
Working on it.
Rik
Comment #4
RdeBoerYou like?
Comment #5
Daniel Wentsch CreditAttribution: Daniel Wentsch commentedWonderful and exactly as I had hoped for! Thanks a lot :)
Comment #6
RdeBoerThanks for the suggestion, Daniel!
I can really see how this is going to make a big difference to many -- and at so little effort from my end.
Cheers,
Rik