Extjs面板调整大小问题
|
我的页面使用中心和东部区域的边框布局,中心区域有三个面板作为子面板,其中两个面板是可折叠的。当我折叠东部区域时,不会调整中央区域子面板的大小。
Ext.require([\'*\']);
Ext.onReady(function() {
Ext.create(\'Ext.Viewport\', {
layout: {
type: \'border\',
padding: 5
},
defaults: {
split: true
},
items: [{
region: \'center\',
border: false,
items: [{
html: \'<h3>some text...</h3>\',
},{
height: 100,
split: false,
collapsible: true,
style : {
marginTop:\'20px\'
},
title: \'panel 1\',
html: \'center panel 1\'
},{
height: 100,
split: false,
collapsible: true,
style : {
marginTop:\'20px\'
},
title: \'panel 2\',
html: \'center panel 2\'
}]
},{
region: \'east\',
collapsible: true,
split: true,
width: 200,
title: \'East\'
}]
});
要使面板按中心区域可调整大小,需要做什么?谁能帮助我?
没有找到相关结果
已邀请:
1 个回复
吠强祷豪硅