【发布时间】:2012-03-21 10:00:31
【问题描述】:
2 个面板:
Ext.create('Ext.Container', {
fullscreen: true,
layout: 'hbox',
items: [
{
xtype: 'panel',
html: 'message list',
flex: 1,
items: [
{
xtype: 'list',
itemTpl: '{title}',
data: [
{ title: 'Item 1' },
{ title: 'Item 2' },
{ title: 'Item 3' },
{ title: 'Item 4' }
]
}
]
},
{
xtype: 'panel',
html: 'message preview',
flex: 3
}
]
});
第一个面板列表对象中没有指定高度属性,因此无法显示。如何在 xtype: 'list' 中设置 100% 高度?
【问题讨论】:
标签: sencha-touch-2