make OpenLayers.Feature create OpenLayers.Popup.Anchored as opposed to OpenLayers.Popup.AnchoredBubble by default
This commit is contained in:
@@ -49,7 +49,7 @@ OpenLayers.Feature = OpenLayers.Class({
|
||||
/**
|
||||
* APIProperty: popupClass
|
||||
* {<OpenLayers.Class>} The class which will be used to instantiate
|
||||
* a new Popup. Default is <OpenLayers.Popup.AnchoredBubble>.
|
||||
* a new Popup. Default is <OpenLayers.Popup.Anchored>.
|
||||
*/
|
||||
popupClass: null,
|
||||
|
||||
@@ -188,7 +188,7 @@ OpenLayers.Feature = OpenLayers.Class({
|
||||
if (!this.popup) {
|
||||
var anchor = (this.marker) ? this.marker.icon : null;
|
||||
var popupClass = this.popupClass ?
|
||||
this.popupClass : OpenLayers.Popup.AnchoredBubble;
|
||||
this.popupClass : OpenLayers.Popup.Anchored;
|
||||
this.popup = new popupClass(this.id + "_popup",
|
||||
this.lonlat,
|
||||
this.data.popupSize,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user