[Commits] r1028 - apps/opengeo/geoexplorer/branches/0.1.x/lib

commits at geoext.org commits at geoext.org
Tue Jun 9 17:55:55 CEST 2009


Author: ahocevar
Date: 2009-06-09 17:55:55 +0200 (Tue, 09 Jun 2009)
New Revision: 1028

Modified:
   apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js
Log:
show feature info inside the popup in an accordion layout. (Closes http://projects.opengeo.org/geoext/ticket/244)

Modified: apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js	2009-06-09 15:46:01 UTC (rev 1027)
+++ apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js	2009-06-09 15:55:55 UTC (rev 1028)
@@ -938,11 +938,11 @@
             var lonlat = this.map.getLonLatFromPixel(evt.xy);
             popup = new GeoExt.Popup({
                 title: "Feature Info",
+                layout: "accordion",
                 map: this.map,
                 lonlat: lonlat,
                 width: 250,
                 height: 300,
-                autoScroll: true,
                 listeners: {
                     close: function(panel) {
                         delete this.popupCache[popupKey];
@@ -960,8 +960,10 @@
         if (!(html == '' || html.match(/<body>\s*<\/body>/))) {
             popup.add({
                 title: title,
+                layout: "fit",
                 html: html,
                 autoScroll: true,
+                autoWidth: true,
                 collapsible: true
             });
         }



More information about the Commits mailing list