As you know, in Internet Explorer, the window.resize event fires when any element on the page changes. It doesn't matter if the page element is changed by assigning / changing its height or style, just adding a child element or something else, even if changing the size of the element does not affect the size of the viewport itself.
In my application, this causes unpleasant recursion, because in my window.resize handler I resize <li> elements, which in turn burn out window.resize, etc. Again, this is only a problem in IE.
Is there a way to prevent window.resize window.resize in IE in response to elements on a page that resizes?
I should also mention that I'm using jQuery.
javascript jquery internet-explorer javascript-events resize
MissingLinq Dec 05 '09 at 17:06 2009-12-05 17:06
source share