문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top