近日,在使用EXT3.4版本的TabPanel的时候,出现了height没有定义的错误,最后发现layout设置为自适应模式才解决此问题。
new Ext.fn.fnLayOut({
layout : 'fit',
border : false,
title :'客户-用户-账户',
renderTo : 'allcustUserAccountMgr',
panels : [ this.createCustUserAccMgrPanel()]
});
};
/*
* 创建客户用户账户面板(主面板)
*/
this.createCustUserAccMgrPanel = function(){
this.custUserAccMgrPanel = new Ext.fn.TabPanel({
activeTab:0,
items:[this.createCustMgrPanel(), this.createUserAccountMgrpanel()]
});
//console.log('laile');
return this.custUserAccMgrPanel;
};