使用Ext.Window时出现No center region defined in BorderLayout错误

在往window中添加element的时候,需要给element指定region

比如

form = new Ext.FormPanel({
         labelWidth: 80, // label settings here cascade unless overridden
         url:'ext_partnerprofile.php?method=set',
         frame:true,
         title: 'Add a New Partner Profile',
         bodyStyle:'padding:5px 5px 0',
         width: 300,
         defaults: {width: 150},
         defaultType: 'textfield',
         region:'center' ,

.....

}); 

转载http://blog.csdn.net/safewolf/article/details/2211697

相关推荐