How to get Leaflet for R use 100% of Shiny dashboard height

后端 未结 6 631
伪装坚强ぢ
伪装坚强ぢ 2020-12-13 01:44

I am in the process of creating a Shiny dashboard application, where the dashboard body is supposed to show some maps. So far no problem to get the map expand over the entir

6条回答
  •  半阙折子戏
    2020-12-13 02:12

    Building on the answer of @K. Rohde I've been using a custom css file containing

    #map {
        height: calc(100vh - 130px) !important;
    }
    
    @media only screen and (min-width: 768px) {
        #map {
        height: calc(100vh - 80px) !important;
        }
    }
    

提交回复
热议问题