Revert "fix #639 too small viewport size reported in IE8"

This reverts commit cd6a2551fcee151fccfdb4a5b4450b233447fcb2.
That commits caused some problems with unnecessary scrollbars in IE8.
Instead, a commit from #675 was incorporated to address the issue.