我无法使面板填充其容器面板中的空间。容器是具有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