Open jzadra opened 1 year ago
Thanks for the report! It's possible that flexdashboard should be doing something different in general with the #dashboard
height. If you could provide a complete reproducible example it would greatly help our investigation. Perhaps you could start with the nuclear waste sites example and remove everything except one map and then add to it the elements you need?
An alternative idea would be to force the custom span you're adding in the navbar to be 30px
tall.
I have a flexdashboard created with Rmarkdown that has a custom span added to the navbar, resulting in the map I have below not being sized problem due to the extra height of the navbar.
The fix in the generated html is known to me: change the height of the dashboard container by replacing
with
However, I have been unable to change the generating Rmarkdown/css code to affect this line in the resulting html document.
The line with some context around it (in the html file) is:
The referenced fillpage.css in its entirety is:
I have tried the following:
height: calc(100% - 30px)
to the Rmarkdown document in thecss
chunk (other css in this chunk is working).In both cases, the generated html referenced above is unaffected.
How can I implement this change in my code so I don't need to manually edit the html document each time I knit?
Note that this is a crosspost from https://stackoverflow.com/questions/68793691/adjusting-leaflet-height-in-flexdashboard