[OpenLayers-Trac] [OpenLayers] #520: Layers don't resize correctly.
OpenLayers
trac at openlayers.org
Wed Mar 7 14:24:58 EST 2007
#520: Layers don't resize correctly.
----------------------+-----------------------------------------------------
Reporter: alilucio | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.3 Release
Component: general | Version: 2.3 RC3
Keywords: |
----------------------+-----------------------------------------------------
After the map is resized, the layers don't resize as well. This is
happening because the onMapResize of each layer is called before the new
size is saved: "this.size = newSize;" This can be corrected by changing it
to:
this.size = newSize;
//notify layers of mapresize
for(var i=0; i < this.layers.length; i++) {
this.layers[i].onMapResize();
}
--
Ticket URL: <http://trac.openlayers.org/ticket/520>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list