OpenLayers OpenLayers

Ticket #1422 (new bug)

Opened 4 months ago

Last modified 2 days ago

updateSize throw an error if map div dimensions are unavailable

Reported by: pgiraud Assigned to:
Priority: major Milestone: 2.7 Release
Component: Map Version: 2.5
Keywords: Cc:
State:

Description

If a map div parent element display is set to 'none', the getSize and getCurrentSize fails to return a valid value (NaN). This is a problem in case where updateSize is called.

We could just return false if no valid value can be returned and fail safely. This would be at the application level that user calls updateSize when the element is displayed again.

Change History

07/04/08 02:21:53 changed by euzuro

  • milestone set to 2.7 Release.