How to make extjs accordion vertically scrollable

孤者浪人 提交于 2019-12-23 16:06:07

问题


fiddle here.

If there are many panels in the accordion they vertically just start bumping up against each other and can't be expanded. I would like to make the total height of the accordion the height of the headers plus the height of one panel body (expanded). And then the parent panel should just have a scrollbar to show that amount of height. This way there is always an open accordion and you can scroll down to any header and instead open that one.

Is this not possible?

If I turn the layout of GroupListView to vbox intead of accordion I then get what I want but unfortunately when you expand/collapse the panels, the animations are all messed up (doesn't work like the accordion)


回答1:


In ExtJS 5.1.1, setting fill: false on the layout declaration seems to produce the desired result.



来源:https://stackoverflow.com/questions/23427197/how-to-make-extjs-accordion-vertically-scrollable

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!