extjs TabPanel 的标题只能单行,如果设置enableTabScroll为true会滚动,如果想实现多行显示,只要覆盖
adjustBodyWidth : function(w){
if(this.header){
this.header.setWidth(w);
}
if(this.footer){
this.footer.setWidth(w);
}
return w;
},
?为
adjustBodyWidth : function(w){
if(this.header){
this.header.setWidth(w);
}
if(this.footer){
this.footer.setWidth(w);
}
if(this.strip){
this.strip.setWidth(w);
}
return w;
},
?即可,此时enableTabScroll应该为false,但会发现样式不好看,需要自己调整。