var panel1;
function newPanel1(){
var config1={title:'这是标题栏',
width:300,
height:300,
floating:true,
renderTo:Ext.getBody(),
draggable:{
insertProxy: false,
onDrag : function(e){
var pel = this.proxy.getEl();
this.x = pel.getLeft(true);
this.y = pel.getTop(true);
var s = this.panel.getEl().shadow;
if (s) {
s.realign(this.x, this.y, pel.getWidth(), pel.getHeight());
}
},
endDrag : function(e){
this.panel.setPosition(this.x, this.y);
}
},
tools:[{id:close,handler:function(event, toolEl, panel){panel.hide();}}],
layout:'border',
items: [{
title: '左边栏',
region: 'west',
split:true,
height: 100,
width:200,
minSize: 75,
maxSize: 250,
margins: '5 0 5 5'
},{
title: '中间主体部分',
region:'center',
margins:'5 5 5 0',
split:true,