From e851d453de24f0f0b3653f5c8052ed8e28c44355 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Sat, 20 Nov 2010 17:43:06 +0000 Subject: [PATCH] reverting r10700 (closes #2870) git-svn-id: http://svn.openlayers.org/trunk/openlayers@10907 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Popup/Anchored.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Popup/Anchored.js b/lib/OpenLayers/Popup/Anchored.js index b89b21180f..9a7ac53926 100644 --- a/lib/OpenLayers/Popup/Anchored.js +++ b/lib/OpenLayers/Popup/Anchored.js @@ -186,10 +186,10 @@ OpenLayers.Popup.Anchored = var size = this.size || this.contentSize; var top = (this.relativePosition.charAt(0) == 't'); - newPx.y += (top) ? -(size.h + this.anchor.size.h) : this.anchor.size.h; + newPx.y += (top) ? -size.h : this.anchor.size.h; var left = (this.relativePosition.charAt(1) == 'l'); - newPx.x += (left) ? -(size.w + this.anchor.size.w) : this.anchor.size.w; + newPx.x += (left) ? -size.w : this.anchor.size.w; return newPx; },