We have an app that needs to work on a wide range of desktop and mobile devices. The main content div is styled thus:
#map {
height: calc(100vh - 65px);
width: 100%;
}
On iPad, and recent mobile Chrome, this element is too tall to fit on the screen, so the bottom part is chopped off. It's too tall by exactly the height of the toolbar, due to this issue.
What's a safe approach for setting the height of the div that will work on all browsers?