如何使extjs手风琴垂直滚动 [英] How to make extjs accordion vertically scrollable

查看:96
本文介绍了如何使extjs手风琴垂直滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里的小提琴

如果手风琴有很多面板,他们垂直地开始相互碰撞,不能扩大。我想使手风琴的高度达到头部的高度加上一个面板的高度(扩展)。然后,父面板应该有一个滚动条来显示高度的数量。这种方式总是有一个开放的手风琴,你可以向下滚动到任何标题,而不是打开那个。

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.

这不可能吗?

如果我将GroupListView的布局转换为手风琴的vbox intead,那么得到我想要的,但不幸的是,当您扩展/折叠面板时,动画都被弄乱了(不像手风琴那样工作)

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)

推荐答案

在ExtJS 5.1.1中,设置 fill:false 布局声明似乎产生了理想的结果。

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

这篇关于如何使extjs手风琴垂直滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆