I've got a javascript-based Scrolling Widget Thingy™. One of the things it does is create a fixed height div
and gives it overflow: auto
.
Alas on mobile Safari (and other mobile browsers) overflow: auto;
doesn't show a scrollbar. Any content below "the fold" can only be found by accident.
Is there a way to detect this in javascript, without resorting to browser detection? e.g.
if (there is a scrollbar) {
/* give me a fixed height and a scrollbar */
} else {
/* Do something more suited to this situation */
}