phegman / vue-mapbox-gl

A Vue.js component for Mapbox GL JS
GNU General Public License v3.0
270 stars 33 forks source link

Have the map fill the full height of container #61

Closed davve14 closed 5 years ago

davve14 commented 5 years ago

Is it possible to fill the full height of the container? height: 100% doesnt seemt to work.

gorbypark commented 5 years ago

Are you setting 100% height on the map id?

#map {
  height: 100%;
}
phegman commented 5 years ago

Yes, you should be able to do this easily with CSS as @gorbypark mentioned. Closing for now, if you still are running into issues please supply a working demo to help with debugging.