1
我原以爲這會很簡單......唉,ExtJS看起來並不簡單。如何在ExtJS中創建具有自動調整功能的分割區域
我需要拆分邊界佈局的「中心」區域,並在頁面調整大小時使頂部和底部的面板填充中心區域。
現在,我只能弄清楚如何爲面板設置絕對尺寸。
下面是使用ExtJS Gui Builder
/* This file is created or modified with
* Ext.ux.guid.plugin.GuiDesigner (v2.1.0)
*/
{
layout : "border",
items : [ {
region : "center",
title : "map",
items : [ {
xtype : "panel",
title : "Panel",
autoHeight : true,
split : true,
height : 100
}, {
xtype : "panel",
title : "Panel",
autoHeight : true,
split : true,
height : 300
}]
}, {
region : "north",
split : true,
height : 100
}, {
region : "west",
width : 300,
split : true,
collapsible : true,
title : "Gazetter Explorer"
}]
}
如果可以在面板的佈局配置中應用Ext.Resizable,而不在面板的渲染事件中使用偵聽器,那將會非常好。 – 2011-08-02 23:15:57