Layout Sencha Touch 2中的布局需要帮助吗
各位! 我需要这个布局位置为我的应用程序在Sencha触摸2 xtype为“panel”的代码工作正常Layout Sencha Touch 2中的布局需要帮助吗,layout,sencha-touch-2,Layout,Sencha Touch 2,各位! 我需要这个布局位置为我的应用程序在Sencha触摸2 xtype为“panel”的代码工作正常 items: [ { xtype: 'panel', docked: 'left', items: [ { xtype: 'panel',
items: [
{
xtype: 'panel',
docked: 'left',
items: [
{
xtype: 'panel',
docked: 'top',
html: '1'
},
{
xtype: 'panel',
docked: 'top',
html: '2'
}
]
},
{
xtype: 'panel',
docked: 'top',
html: '3'
}
]
但如果我将一个面板替换为xtype:“list”
items: [
{
xtype: 'panel',
docked: 'left',
items: [
{
xtype: 'panel',
docked: 'top',
html: '1'
},
{
xtype: 'list',
docked: 'top',
store: 'mystore',
itemTpl:'<div>{Caption}</div>'
}
]
},
{
xtype: 'panel',
docked: 'top',
html: '3'
}
]
项目:[
{
xtype:'面板',
停靠:“左”,
项目:[
{
xtype:'面板',
停靠:“顶部”,
html:'1'
},
{
xtype:'列表',
停靠:“顶部”,
商店:“mystore”,
itemTpl:“{Caption}”
}
]
},
{
xtype:'面板',
停靠:“顶部”,
html:'3'
}
]
它不会显示在浏览器中,仅显示带有xtype:“panel”的面板。我做错了什么
谢谢。试试绝对位置
{
xtype: 'list',
docked: 'top',
top: 0,
bottom: 0,
left: 0,
right: 0,
store: 'mystore',
itemTpl:'<div>{Caption}</div>'
}
<代码>{
xtype:'列表',
停靠:“顶部”,
排名:0,
底部:0,
左:0,,
右:0,,
store:'mystore',
itemTpl:“{Caption}”
}
同意,这是触摸2的一个令人不快的怪癖
干杯,奥列格