fix some edge-cases where the documentElement height is 100% of the
content height