例如DIV的宽度和高度分别是500*400
初始化的时候就有一个tab且宽和高占满了DIV
但新增一个tab的时候宽度和高度都比原先的数值大,出现了滚动条,而我想让它占满DIV
代码:
var tab = new Ext.TabPanel({
width : divWidth,//返回500
height :  divHeight,//返回400
renderTo: listDivId,
autoDestroy:false,
title : 'fffff',
resizeTabs:true, 
         minTabWidth: 85,
         tabWidth:135,
         enableTabScroll:true,
         defaults: {autoScroll:true},
items : Grid,
activeTab : 0,
         plugins: new Ext.ux.TabCloseMenu()
})
function addTab(tabId,title){
        tab.add({
            id:tabId,
            title: title,
            width: divWidth,
            height: divHeight,
            region:'center',
            deferredRender:false,
            iconCls: 'tabs',
            items:Grid1,
            closable:true
        }).show();
    }