0
我有一個TreePanel中:可調整TreePanel中的ExtJS的
treepanel = Ext.define('filteredTree', {
extend: 'Ext.tree.Panel',
title: 'Filtered Tree',
store: store,
width: 784,
height: 550,
buttons: [
{
text: 'Select',
handler: function() {
var panel = this.up('treepanel');
//...selection of value
}
}
]
//...Here is search mechanism
});
並在它的顯示窗口。窗口是可調整大小:
win = Ext.create('widget.window', {
title: 'Выбор значения из словаря',
header: {
titlePosition: 2,
titleAlign: 'center'
},
closable: true,
closeAction: 'hide',
maximizable: true,
width: 800,
minWidth: 350,
height: 600,
tools: [{ type: 'pin' }],
theme:"classic",
layout: {
type: 'border',
padding: 5
},
items: [
Ext.create('filteredTree')
]
});
我想看看如果窗口大小改變了面板也改變大小。我怎樣才能做到這一點?
謝謝,薩魯!那就是我想要的! – Artemii