Fix opened window size on small screens in browsers where height is an innerHeight (eg. Safari)
Revert fix for #1489058 because it opened another IE8 focus issue