VBOX布局下 首先每一项要都有flex值,其次列表不能用docked属性,这样sencha touch 2 就会自动用layout:'布局',LIST里面的东西就显示出来了另外还一个就是多用百分比定义宽度。
例如:
{
xtype: 'panel',
width:'100%',
height:350,
items: [
{
xtype:'video',
posterUrl: 'resources/media/cover.jpg'
}
],
docked:'top',
flex:1
},
{
xtype:'toolbar',
title:'课件列表',
docked:'top',
flex:2
},
{
//列表
itemId:'coursewaresList',
xtype: 'videoplaylist',
store: 'Coursewares',
flex:3,
scrollable: true
}