[OpenLayers-Commits] r10906 - in trunk/openlayers: examples lib/OpenLayers lib/OpenLayers/Popup

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Sat Nov 20 12:38:24 EST 2010


Author: ahocevar
Date: 2010-11-20 09:38:23 -0800 (Sat, 20 Nov 2010)
New Revision: 10906

Modified:
   trunk/openlayers/examples/proxy.cgi
   trunk/openlayers/lib/OpenLayers/Popup/Anchored.js
   trunk/openlayers/lib/OpenLayers/Util.js
Log:
reverting r10905, which included more changes than it should have


Modified: trunk/openlayers/examples/proxy.cgi
===================================================================
--- trunk/openlayers/examples/proxy.cgi	2010-11-20 17:36:15 UTC (rev 10905)
+++ trunk/openlayers/examples/proxy.cgi	2010-11-20 17:38:23 UTC (rev 10906)
@@ -21,7 +21,7 @@
                 'sigma.openplans.org', 'demo.opengeo.org',
                 'www.openstreetmap.org', 'sample.azavea.com',
                 'v2.suite.opengeo.org', 'v-swe.uni-muenster.de:8080', 
-                'vmap0.tiles.osgeo.org', 'openmaps.gov.bc.ca', 'localhost:80']
+                'vmap0.tiles.osgeo.org']
 
 method = os.environ["REQUEST_METHOD"]
 

Modified: trunk/openlayers/lib/OpenLayers/Popup/Anchored.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Popup/Anchored.js	2010-11-20 17:36:15 UTC (rev 10905)
+++ trunk/openlayers/lib/OpenLayers/Popup/Anchored.js	2010-11-20 17:38:23 UTC (rev 10906)
@@ -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;
+        newPx.y += (top) ? -(size.h + this.anchor.size.h) : this.anchor.size.h;
         
         var left = (this.relativePosition.charAt(1) == 'l');
-        newPx.x += (left) ? -size.w : this.anchor.size.w;
+        newPx.x += (left) ? -(size.w + this.anchor.size.w) : this.anchor.size.w;
 
         return newPx;   
     },

Modified: trunk/openlayers/lib/OpenLayers/Util.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Util.js	2010-11-20 17:36:15 UTC (rev 10905)
+++ trunk/openlayers/lib/OpenLayers/Util.js	2010-11-20 17:38:23 UTC (rev 10906)
@@ -1633,12 +1633,10 @@
 
 /**
  * Constant: IS_GECKO
- * {Boolean} True if the navigator.userAgent property reports the browser to
- * use the Gecko engine
+ * {Boolean} True if the userAgent reports the browser to use the Gecko engine
  */
 OpenLayers.IS_GECKO = (function() {
-    var ua = navigator.userAgent.toLowerCase();
-    return ua.indexOf("gecko") != -1 && ua.indexOf("webkit") == -1;
+    return navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
 })();
 
 /**



More information about the Commits mailing list