I've finally found a solution for making mapbox fullsize. I added this chunk of code to CSS:
#map {
height: calc(100vh - 57px) !important;
width: calc(100vw - 73.594px) !important;
}
.wrapper {
overflow-x: hidden;
overflow-y: auto;
}
Thanks to this code, when you open the sidebar no scroll bars appear on the bottom and on the right side and everything works smoothly (ok, text 'Mapbox' and map description on the right-bottom also moves when sidebar is opened but I don't think it's an issue here). I've noticed that those .wrapper
style options were default in shinydashboardPlus
package but not in bs4Dash
so I needed to add them to CSS.
So depending on shiny package and sometimes a map provider there's a need to make some minor changes to CSS code in order to make map fullsize and avoid scroll bars.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…