Ticket #2057 (new bug)

Opened 6 years ago

IE 7: dynamic map size leeds to an endless loop

Reported by: matthiasdrews Owned by:
Priority: major Milestone: 2.13 Release
Component: Map Version: 2.7
Keywords: Cc:
State:

Description

There is a problem in IE 7, when the main map has a dynamic size, and at the same time the application contains an overview map.

In my application, I have a container div for the main map, which has no fix size, but is positioned within the website by css-attributes left, top, right and bottom. The map div fills 100% of this container div. Whenever the browser window is resized, the method updateSize in the main map is called, which leads to a call of updateSize in the overview map. It seems that at this point, somewhere in the getCurrentSize-method, new browser events are fired, and updateSize in the main map is called again - the application runs into an endless loop.

The problem is not there in Firefox 3. Also in IE 7, without the overview map, the application is ok.

I fixed the problem for me by changing the order of the if-clauses in the getCurrentSize-method of the overview map (see attachment).

Attachments

getCurrentSize.txt Download (0.6 KB) - added by matthiasdrews 6 years ago.

Change History

Changed 6 years ago by matthiasdrews

Note: See TracTickets for help on using tickets.