[OpenLayers-Commits] r10907 - trunk/openlayers/lib/OpenLayers/Popup

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Sat Nov 20 12:43:06 EST 2010


Author: ahocevar
Date: 2010-11-20 09:43:06 -0800 (Sat, 20 Nov 2010)
New Revision: 10907

Modified:
   trunk/openlayers/lib/OpenLayers/Popup/Anchored.js
Log:
reverting r10700 (closes #2870)


Modified: trunk/openlayers/lib/OpenLayers/Popup/Anchored.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Popup/Anchored.js	2010-11-20 17:38:23 UTC (rev 10906)
+++ trunk/openlayers/lib/OpenLayers/Popup/Anchored.js	2010-11-20 17:43:06 UTC (rev 10907)
@@ -186,10 +186,10 @@
         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;   
     },



More information about the Commits mailing list