#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:
@@ -595,13 +595,14 @@ OpenLayers.Map.prototype = {
|
|||||||
this.size = oldSize = newSize;
|
this.size = oldSize = newSize;
|
||||||
if (!newSize.equals(oldSize)) {
|
if (!newSize.equals(oldSize)) {
|
||||||
|
|
||||||
|
// store the new size
|
||||||
|
this.size = newSize;
|
||||||
|
|
||||||
//notify layers of mapresize
|
//notify layers of mapresize
|
||||||
for(var i=0; i < this.layers.length; i++) {
|
for(var i=0; i < this.layers.length; i++) {
|
||||||
this.layers[i].onMapResize();
|
this.layers[i].onMapResize();
|
||||||
}
|
}
|
||||||
|
|
||||||
// store the new size
|
|
||||||
this.size = newSize;
|
|
||||||
// the div might have moved on the page, also
|
// the div might have moved on the page, also
|
||||||
this.events.element.offsets = null;
|
this.events.element.offsets = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user