OpenLayers OpenLayers

Changeset 1935

Show
Ignore:
Timestamp:
11/19/06 20:11:21 (2 years ago)
Author:
crschmidt
Message:

Fix for #415 , reported by penyaskito, approved by Schuyler. Due to an oversight
in my new setSize function didn't test setting size before popup was added to
the map.

Files:

Legend:

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

    r1721 r1935  
    7171     
    7272            this.contentDiv.style.height = contentSize.h + "px"; 
     73            this.contentDiv.style.width  = contentSize.w + "px"; 
    7374             
    74             //size has changed - must redo corners         
    75             this.setRicoCorners(!this.rounded); 
    76             this.rounded = true; 
     75            if (this.map) { 
     76                //size has changed - must redo corners         
     77                this.setRicoCorners(!this.rounded); 
     78                this.rounded = true; 
     79            }     
    7780        } 
    7881    },