- fix window height detection in quirks mode to prevent scrolling bug