Ticket #2285 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

VirtualEarth layer size never updated

Reported by: fredj Owned by:
Priority: minor Milestone: 2.9 Release
Component: general Version: SVN
Keywords: Cc:
State: Complete

Description

In loadMapObject, a div is created and sized to the map dimension but when the map is resized the div size is not updated.

Attachments

2285.0.patch Download (1.3 KB) - added by fredj 4 years ago.
implement onMapResize: resize internal div and call mapObject.Resize
2285.html Download (0.8 KB) - added by fredj 4 years ago.
simple html file to demonstrate the bug: load page and resize the browser window -> the layer div is not updated
openlayers-2285.patch Download (464 bytes) - added by ahocevar 4 years ago.
Simpler solution as proposed by Matt Diez

Change History

Changed 4 years ago by fredj

implement onMapResize: resize internal div and call mapObject.Resize

Changed 4 years ago by fredj

simple html file to demonstrate the bug: load page and resize the browser window -> the layer div is not updated

Changed 4 years ago by fredj

  • state set to Review

Changed 4 years ago by ahocevar

Simpler solution as proposed by Matt Diez

Changed 4 years ago by ahocevar

  • state changed from Review to Commit

fredj: as pointed out by Matt Diez in June (http://openlayers.org/pipermail/dev/2009-June/004989.html), this issue can be fixed in a simpler way. I am attaching a patch with the solution proposed by him. The 2285.html example also works with that one. If you are fine with that simpler fix, please commit it.

Changed 4 years ago by fredj

  • status changed from new to closed
  • state changed from Commit to Complete
  • resolution set to fixed

(In [9694]) Update the VirtualEarth layer size when the map is resized. r=ahocevar, p=Matthew D. Diez (closes #2285)

Note: See TracTickets for help on using tickets.