[jQuery] $(window).height() / .width()
$(window).height() and .width() cause the error "e.style has no properties".
I think it would be preferable to modify .height and .width to handle
window objects as a special case.
A quick Google suggests using window.innerWidth, or where that is
undefined document.body.offsetWidth.
I just tested $('html').width() in Firefox 1.5.0.6 and IE6 and it
returns the width of the window even when $('body').width() is
explicitly set as lower. Therefore, I believe $('html').width() would
be preferable to document.body.offsetWidth.
Any chance of this being implemented? I'd like to use $(window).width()
and .height() in an update to my jQMinMax plugin.
Best wishes,
Dave Cardwell ~ http://davecardwell.co.uk/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/