当前位置: 代码迷 >> JavaScript >> extjs TabPanel 多行题目
  详细解决方案

extjs TabPanel 多行题目

热度:711   发布时间:2013-04-20 19:43:01.0
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,但会发现样式不好看,需要自己调整。

  相关解决方案