[英]Sencha Touch 2 - scroll list with other elements
I have a view similar to this (this one is just an example): 我有类似的观点(这只是一个例子):
xtype: 'container',
layout: {
type: 'vbox'
},
items: [
{ xtype: 'some elements (actually this one is container, but it doesn't matter I think)' },
{ xtype: 'list', flex: 1 }
]
I need all this stuff to be scrollable together, but if I make list scrollable:false and set true of the same parameter to the parent container - it just cut down my content in the list. 我需要所有这些东西一起滚动,但是如果我使list scrollable:false并将父容器的相同参数设置为true,那么它只会减少列表中的内容。
Does anyone know what to do to make it work as I want? 有谁知道该怎么做才能使它按我的意愿工作?
You have done right by giving scrollable : false to list and true of the same parameter to the parent container .Now to prevent cut down of content in the list,you have use the following css code 您已经通过给scrollable提供了正确的选择:将list设置为false ,将父容器的参数设置为true 。现在为了防止列表中内容的减少,请使用以下css 代码
.<yourListClass> .x-scroll-scroller,.<yourListClass> .x-scroll-container{
position:relative;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.