Ticket #1550 (closed feature: wontfix)
IE7 resize event problem
|Reported by:||ksgeograf||Owned by:||crschmidt|
In IE7, if you try to read the size of an element, it will immediately fire the "resize" event. If the code reading the size is activated by the event, it returns width/height = 0 for all known properties (ie, clientWidth, scrollWidth, etc.).
This causes problems in IE7, because updateSize() in Map.js calls getCurrentSize().
updateSize is the event handler for the resize event, and getCurrentSize tries to read the size of the element. In my solution, this causes the page to momentarily stop working, because the map is resized to 0 width, and 0 height. Usually the onload event of the layer restores functionality, but ocasionally not.
I have summed up my changes in a patch for the trunk version of Map.js. It may not be completely correct, because I developed the change for 2.5, and have not yet upgraded.