extjs - Is there a way to have tabs in a tab panel scrollable with tabBarHeaderPosition set in ExtJS6? -


if tab panel has many tabs little scroll bar appears can scroll through tabs, see fiddle.

if move tabs header (uncomment tabbarheaderposition: 1 fiddle), scrollbar won't appear anymore.

is there way make tabs scrollable inside header?

setting flex tabbar seems work. adding flex title can give tab bar more space.

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'     }] }); 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -