日期:2014-05-16  浏览次数:20344 次

extjs TabPanel 多行标题

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,但会发现样式不好看,需要自己调整。