Question

On lunch, my application is loading a data store and is creating some Ext.panel.Panel inside an accordion layout based on the number of items in the data store.

Is there a way to auto adjust the height of the accordion Panel ? The height should be determined by the number of Panel inside the accordion Panel.

Was it helpful?

Solution

I did it by setting the height manually.

I estimated that each accordion item is 37 pixel. And I am adding 100 to leave space for the text inside the accordion items.

myPanel.setHeight(records.length*37+100);

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top