make OpenLayers.Feature create OpenLayers.Popup.Anchored as opposed to OpenLayers.Popup.AnchoredBubble by default

This commit is contained in:
Éric Lemoine
2011-12-09 00:05:34 +01:00
parent 33a1c842d6
commit 46e15b5359
2 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@
//Safari 3 separates style overflow into overflow-x and overflow-y
var prop = (OpenLayers.BROWSER_NAME == 'safari') ? 'overflowX' : 'overflow';
t.eq(popup.contentDiv.style[prop], "auto", 'overflow on popup is correct');
t.ok( popup instanceof OpenLayers.Popup.AnchoredBubble, "popup is an AnchoredBubble by defaults");
t.ok( popup instanceof OpenLayers.Popup.Anchored, "popup is a Popup.Anchored by default");
feature.destroyPopup();
feature.popupClass = OpenLayers.Popup.FramedCloud;