diff --git a/lib/OpenLayers/Popup/AnchoredBubble.js b/lib/OpenLayers/Popup/AnchoredBubble.js index 4fced7e180..495543cf28 100644 --- a/lib/OpenLayers/Popup/AnchoredBubble.js +++ b/lib/OpenLayers/Popup/AnchoredBubble.js @@ -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; + } } },