#520, patch by euzuro. This fixes a bug with resizing a WMS.Untiled layer,

because the new map size was not set until *after* the onMapResize event. 
(oops.) This way, untiled layers redraw with the correct size.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2532 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-03-08 19:18:06 +00:00
parent baa78896e8
commit 4e5bc0234a

View File

@@ -595,13 +595,14 @@ OpenLayers.Map.prototype = {
this.size = oldSize = newSize;
if (!newSize.equals(oldSize)) {
// store the new size
this.size = newSize;
//notify layers of mapresize
for(var i=0; i < this.layers.length; i++) {
this.layers[i].onMapResize();
}
// store the new size
this.size = newSize;
// the div might have moved on the page, also
this.events.element.offsets = null;