View Full Version : Ext Panel not resizing on accordian expand

12 Apr 2013, 4:19 AM

I have a panel with an accordian layout containing multiple (max. 10) property grids.

This works fine when there are a couple of property grid items and there is space in the panel to expand them. However if the panel is full of collapsed grids then they cannot be expanded. Manually increasing the height of the panel allows them to be expanded.

autoScroll is enabled. If I set autoHeight true the panel sizes to fit all items collapsed but wont resize to expand one.

Hopefully someone can tell me what I am doing wrong.

I am working with Ext 3.4.0 due to compatibility with GeoExt.



43108 43109

Code for creating panel and propertygrids:

xtype: "propertygrid",
title: title,
source: feature.attributes,
sorting: false

if (items.length > 0) {
new GeoExt.Popup({
title: "Feature Info - (" + items.length + " Results)" + maxFeatures,
width: 400,
height: 300,
layout: "accordion",
autoScroll: true,
map: Map,
location: evt.xy,
items: items