0
我想將一個面板放在列表下面,但它似乎總是在列表頂部。我不想在列表上設置高度,因爲它可能沒有記錄或20,因此高度不同。顯示面板下面的列表sencha touch
我只想讓我的面板顯示在我的清單的正下方。另請注意,我禁用了滾動功能。
Rad.views.testList = Ext.extend(Ext.List, {
fullscreen: true,
layout: 'hbox',
scroll: false,
align: 'top',
store: Rad.stores.test,
itemTpl: Rad.views.testTemplate(),
});
topPanel = new Ext.Panel({
fullscreen: true,
scroll: true,
layout: {
type: 'vbox',
pack: "start",
align: "start"
},
defaults: {
width: '100%',
},
items: [
{
layout: 'hbox',
items: [testList]
},
{
html: 'This will be on the list not below!'
]
});
Ext.apply(this, {
layout: {
type: 'vbox',
pack : 'top',
},
dockedItems: [titlebar],
items : [ topPanel]
});