One possible reason may be that you are checking the console with firebug / something else. So you wonβt get the correct window height due to the height of Firebug.
You can try something like this:
take the span / div document in the document:
<span id="res"></span>
and then
$(window).on('resize',function() { $('#res').html("new height is: "+$(window).height()); });
Or, if you want to check, put on the firebug console, then separate it from the browser and then check the result.
The System Restart May 13, '12 at 4:32 2012-05-13 04:32
source share