我無法使面板填充其容器面板中的空間。容器是具有vbox佈局的面板,其具有兩個子面板。我看着Extjs how to set 100% height for vbox panel 並有類似的東西,但似乎並不奏效。如何在vbox佈局中獲取面板以填充容器?
截圖: - http://i.imgur.com/nAbCr.png 的屏幕截圖是從當我使用一個「適應」佈局或甚而不具有在含面板組合框或optionsview。所以,我想要的是'選項'面板一直延伸到'結果'面板。 本VBOX佈局,這是我所得到的 - http://i.imgur.com/cB0k1.png
Ext.define('PA.view.CreateReportView', {
extend: 'Ext.panel.Panel',
alias: 'widget.createreportview',
id: 'createreport-panel',
requires: [
'PA.view.OptionsView', // options panel
'PA.common.Connection'],
title: 'Create Report',
items: [{
xtype: 'panel',
layout: {
type: 'vbox',
align: 'stretch'
},
items: [{
xtype: 'panel',
border: false,
height: '50px',
items: [{
xtype: 'combobox',
....
}]
}, {
xtype: 'panel',
border: false,
flex: 1,
items: [{
xtype: 'optionsview', // options panel
style: {
paddingTop: '10px'
}
}]
}]
}]
});
也嘗試過,沒有工作 – Armaan 2012-03-14 20:05:01
然後我想這是因爲你的外部「創建報告」面板沒有指定佈局。你應該給它'layout:'fit''。或完全移除額外面板組件。 – 2012-03-14 20:12:45
設置佈局以適應createpanel和包含optiopnsview的面板修復它。它現在完美的工作,謝謝! – Armaan 2012-03-14 20:59:14