javascript - jVectorMap height:% does not work -


i using library: http://jvectormap.com/ create map website. attempting set width , height of map 100% through style attribute make map display @ full-screen size.

when specify following:

<div id="map1" style="width: 100%; height: 100%"></div> 

the map displays follows: enter image description here

the width attribute appears work correctly, height attribute not. when resize window, width scales correctly, whereas height appears scale regardless of whether scale image or down.

how can make map appear specified scale using percentage?

try in css:

head {     height:100%; } #map1 {     position:absolute;     height:100%; } 

setting height of head element 100% sets definition map height be.


Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -