OpenLayers OpenLayers

Changeset 7557

Show
Ignore:
Timestamp:
07/23/08 10:23:41 (4 months ago)
Author:
crschmidt
Message:

Pull in fix from #830.

svn merge -r 7299:7300 trunk/openlayers/ .

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/crschmidt/africamap/lib/OpenLayers/Layer/Google.js

    r6492 r7557  
    190190     */ 
    191191    onMapResize: function() { 
    192         this.mapObject.checkResize();   
     192        if(this.visibility) { 
     193            this.mapObject.checkResize();   
     194        } else { 
     195            this.windowResized = true; 
     196        } 
     197    }, 
     198     
     199    /** 
     200     * Method: display 
     201     * Hide or show the layer 
     202     * 
     203     * Parameters: 
     204     * display - {Boolean} 
     205     */ 
     206    display: function(display) { 
     207        OpenLayers.Layer.EventPane.prototype.display.apply(this, arguments); 
     208        if(this.div.style.display == "block" && this.windowResized) { 
     209            this.mapObject.checkResize(); 
     210            this.windowResized = false; 
     211        } 
    193212    }, 
    194213