[jQuery] using resize event to adjust div height hangs IE6 and IE7

[jQuery] using resize event to adjust div height hangs IE6 and IE7


Hi all,
I'm using $(window).resize() to adjust a div height on the fly.
I've found that mucking about with the window size causes IE6 & IE7 to hang
- I guess because too many events are being fired for IE to cope?
Here's my code :
function content_resize() {
var w = $( window );
var H = w.height();
$( '#content' ).css( {height: H-270} );
}
$(document).ready(function() {
    $( window ).resize( content_resize );
    content_resize();
});
I'm using jquery 1.2.2 and the dimensions plugin. I've also tried the
wresize plugin which addresses duplicated resize events in IE but both cause
the same hang when browser window altered quickly.
Anyone else seen this? Are there any workarounds?
Regards
Sean
sean ronan
activepixels
office : 01245 399 499
email : sean@activepixels.co.uk
web : activepixels.co.uk
Activepixels is a limited company registered in England and Wales.
Registered number: 5081009.
Registered office: Suite SF8, The Heybridge Business Centre, 110 The
Causeway, Maldon, Essex, CM1 3TY.





























    • Topic Participants

    • sean