diff --git a/lib/OpenLayers/Popup/Anchored.js b/lib/OpenLayers/Popup/Anchored.js index 39c45e0384..dcf03f6925 100644 --- a/lib/OpenLayers/Popup/Anchored.js +++ b/lib/OpenLayers/Popup/Anchored.js @@ -107,11 +107,7 @@ OpenLayers.Popup.Anchored.prototype = * @type OpenLayers.Pixel */ calculateNewPx:function(px) { - var newPx = px.copyOf(); - - //adjust for offset - newPx.offset(this.anchor.offset); - + var newPx = px.offset(this.anchor.offset); var top = (this.relativePosition.charAt(0) == 't'); newPx.y += (top) ? -this.size.h : this.anchor.size.h;