new Ext.form.FieldSet({
title : '更多内容...点击伸缩',
collapsible : true,
collapsed : true,
titleCollapse : true,
listeners : {
collapse : function() {
Ext.getCmp('myquery').setHeight(165);
Ext.getCmp('viewPort').doLayout();
},
expand : function() {
Ext.getCmp('myquery').setHeight(270);
Ext.getCmp('viewPort').doLayout();
}
}
效果