2017-07-25 32 views

回答

1

爲tabBar設置flex似乎有效。同時向標題添加flex可以爲標籤欄留出更多空間。

https://fiddle.sencha.com/#view/editor&fiddle/23vc

Ext.create('Ext.tab.Panel', { 
    width: 400, 
    height: 400, 
    activeTab: 2, 
    renderTo: document.body, 
    title: { 
     text: 'Title', 
     flex: .2 
    }, 
    tabBarHeaderPosition: 1, 
    tabBar: { 
     flex: .8 
    }, 
    items: [{ 
     title: 'Foo' 
    }, { 
     title: 'Bar' 
    }, { 
     title: 'some tab' 
    }, { 
     title: 'another tab' 
    }, { 
     title: 'tab 1' 
    }, { 
     title: 'final tab' 
    }, { 
     title: 'Foo' 
    }, { 
     title: 'Bar' 
    }, { 
     title: 'some tab' 
    }, { 
     title: 'another tab' 
    }, { 
     title: 'tab 1' 
    }, { 
     title: 'final tab' 
    }] 
}); 
相關問題