fix #639 too small viewport size reported in IE8

This should probably land after the current release. It will have to be backported to 1.3.7.