I have been trying to compare combinations of:
element clientWidth/Height, offsetWidth/Height, scrollWidth/Height and trying to get around
window innerWidth/Height, outerWidth/Height.
Nothing really seemed to work.
This seems to work until I find something better.
window.onload = testScroll;
var element = document.getElementById('pageDefault');
var height = element.style.height;
var clientWidth = document.body.clientWidth;
element.style.height = "101%";
if (document.body.clientWidth < clientWidth)
element.style.height = height;