IE7 Resize Issues

I have a page containing content that needs to be dynamically changed to fit the current page size. to do this, during the onload event, I attach some JS function to the onresize window event. it looks like this:

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

This works great in any view mode except IE7!

These are the problems I am facing:

  • It seems that in IE7, when I resize the window only vertically (i.e. by clicking on the bottom border and dragging it), it does not fire the onresize event.

  • sometimes, I get an infinite loop of the onresize event, causing the browser to hang constantly.

I will be grateful for any help on any of these issues.

thank you mo


2 days and no answer ... I don’t know? I thought I would find some help here ...

+3

Source: https://habr.com/ru/post/1745948/


All Articles