use new offset() function

git-svn-id: http://svn.openlayers.org/trunk/openlayers@459 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-29 19:28:27 +00:00
parent 1d1452da61
commit a78ee9f86c

View File

@@ -110,7 +110,7 @@ OpenLayers.Popup.Anchored.prototype =
var newPx = px.copyOf();
//adjust for offset
newPx.add(this.anchor.offset.x, this.anchor.offset.y);
newPx.offset(this.anchor.offset);
var top = (this.relativePosition.charAt(0) == 't');