Domanda

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.

È stato utile?

Soluzione

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);

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top