IE7 resize problems

Posted by moshe_ravid on Stack Overflow See other posts from Stack Overflow or by moshe_ravid
Published on 2010-05-18T09:34:16Z Indexed on 2010/05/18 9:40 UTC
Read the original article Hit count: 406

Filed under:
|
|

i have a page that contains content which need to be dynamically changed according to the current page size. in order to do that, during the onload event, i attach some JS function to the "onresize" window event. it looks like that:

window.onresize = function() {
  //do something here...
};

This is working fine in any browse, except IE7!

These are the problems i'm having:

  1. It seems that in IE7, when i resize the window vertically only (i.e. clicking with the mouse on the bottom border, and drag it down), it does not fire the "onresize" event.

  2. sometimes, i get an infinite loop of "onresize" event, causing the browser to hang forever.

I will appreciate any help with any of these issues.

thanks, Moe

© Stack Overflow or respective owner

Related posts about ie7

Related posts about onresize