OpenLayers OpenLayers

Changeset 2532

Show
Ignore:
Timestamp:
03/08/07 14:18:06 (2 years ago)
Author:
crschmidt
Message:

#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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Map.js

    r2306 r2532  
    596596        if (!newSize.equals(oldSize)) { 
    597597             
     598            // store the new size 
     599            this.size = newSize; 
     600 
    598601            //notify layers of mapresize 
    599602            for(var i=0; i < this.layers.length; i++) { 
     
    601604            } 
    602605             
    603             // store the new size 
    604             this.size = newSize; 
    605606            // the div might have moved on the page, also 
    606607            this.events.element.offsets = null;