]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/account.rhtml
Set the map units to something OpenLayers actually understands...
[rails.git] / app / views / user / account.rhtml
index 5014b43afdc14f34cf8cf6edf17b787474cad47e..9f6e4f32bfa3735a80b6203c49c5d65d5258ae85 100644 (file)
     var box = document.getElementById( 'highlightinfo' );
     box.innerHTML = html;
     closePopup();
-    popup = new OpenLayers.Popup.AnchoredBubble( 'popup', position, new OpenLayers.Size( box.offsetWidth, box.offsetHeight ), html, OpenLayers.Marker.defaultIcon(), true );
+    popup = new OpenLayers.Popup.AnchoredBubble( 'popup', position, new OpenLayers.Size( box.offsetWidth + 100, box.offsetHeight + 20 ), html, OpenLayers.Marker.defaultIcon(), true );
     map.addPopup( popup );
   }