geoext1 icon indicating copy to clipboard operation
geoext1 copied to clipboard

popup-more example broken

Open fredj opened this issue 12 years ago • 1 comments

When clicking the map, the popup is not anchored to the mouse position.

After fa884d3df06eef887b60074063b0f8b6891d5af1, the anchored config options is set to false is not valid location is passed to the constructor option.

Expected behavior: http://api.geoext.org/1.1/examples/popup-more.html

fredj avatar May 01 '12 13:05 fredj

@fredj should we just fix up the example by passing in location to the constructor?


diff --git a/examples/popup-more.js b/examples/popup-more.js
index 21f2a4f..160ffbf 100644
--- a/examples/popup-more.js
+++ b/examples/popup-more.js
@@ -23,6 +23,7 @@ Ext.onReady(function() {
             popup = new GeoExt.Popup({
                 title: "Popup",
                 width: 200,
+                location: loc,
                 maximizable: true,
                 collapsible: true,
                 map: mapPanel.map,

bartvde avatar Sep 11 '12 13:09 bartvde