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.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1935 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-11-20 01:11:21 +00:00
parent 5e7b2e03f1
commit e6ef35c174

View File

@@ -70,10 +70,13 @@ OpenLayers.Popup.AnchoredBubble.prototype =
contentSize.h -= (2 * this.padding);
this.contentDiv.style.height = contentSize.h + "px";
this.contentDiv.style.width = contentSize.w + "px";
//size has changed - must redo corners
this.setRicoCorners(!this.rounded);
this.rounded = true;
if (this.map) {
//size has changed - must redo corners
this.setRicoCorners(!this.rounded);
this.rounded = true;
}
}
},