You should wrap the gx_legendimage in a panel or even just wrap it in curly braces which will essentially accomplish the same thing. An accordion layout’s items need to be or inherit from Ext.Panel. “Note: Only Ext.Panels and all subclasses of Ext.Panel may be used in an accordion layout Container.” Matt Priour Kestrel Computer Consulting
From: John Cartwright Sent: Thursday, October 13, 2011 11:02 AM To: users@geoext.org Subject: [Users] problem w/ Hello All, I'm trying to use a GeoExt.LegendImage inside an Accordion like this: { region: "east", width: 200, collapsible: true, layout: "accordion", items:[ { xtype: 'gx_legendimage', imgCls: 'legendImg', url: 'http://www.ngdc.noaa.gov/eog/maps/cgi-bin/public/ms/poverty?version=1.0.0&service=WMS&request=GetLegendGraphic&layer=Poverty_by_state&format=image/png&width=100&height=200' } ] } However, I'm getting an error which I can't make sense of: a.header is undefined http://maps.ngdc.noaa.gov/ext/ext-all.js Line 7 Can someone please point out what I'm doing wrong? Thanks! --john _______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users