【发布时间】:2014-06-10 19:27:14
【问题描述】:
我有一个带有边框布局的面板。该面板具有中心区域和西部区域。在西部地区,有一个带有边框布局的面板,其中包含 3 个面板。见下图。
我使用“拆分”,以便使用拆分器调整西部区域的大小。问题是,当我尝试调整西部区域的大小时,内部面板的大小没有正确调整。见下图。
我的代码非常少,我看不出有什么问题。
这是JSFiddle of my code 下面是生成这些面板的代码。
this.mainPanel = Ext.create('Ext.panel.Panel', {
layout: 'border',
height: 1000,
width: 1400,
items: [{
xtype: 'panel',
region: 'center',
layout: 'border',
id: 'center-panel',
items: [{
xtype: 'panel',
layout: 'border',
region: 'center',
items: [{
xtype: 'panel',
region: 'center',
id: 'grid-panel',
layout: 'fit'
}, {
xtype: 'panel',
id: 'south-panel',
region: 'south',
split: true,
title: 'Additional data represented by this event',
height: 200
}]
}]
}, {
xtype: 'panel',
ref: 'west_panel',
region: 'west',
split: true,
title: 'Show/Hide',
width: 300,
minWidth: 175,
maxWidth: 500,
items: [{
xtype: 'panel',
split: true,
collapsed: true,
title: 'Show/Hide by Time'
}, {
xtype: 'panel',
split: true,
collapsible: true,
title: 'Show/Hide by activity types and tags'
}, {
xtype: 'panel',
split: true,
collapsible: true,
title: 'Show/Hide by participant types and tags'
}]
}]
});
this.mainPanel.render(document.getElementById('example-grid'));
知道如何解决这个问题吗?
附:我正在使用 ExtJS 4.2.1.883
【问题讨论】:
标签: javascript extjs extjs4 extjs4.2