PDA

View Full Version : How i can drag to the end when i scroll the tabpanel



iche
21 Jan 2013, 6:57 AM
This is source

I add scroll(horizontal) property to tabpanel
and There are a lot of tab menu
I expected that i can scroll to last tab menu
but i can't
what is wrong ?
is there what i do ?

Ext.create('Ext.TabPanel', {
fullscreen: true,
tabBarPosition: 'bottom',


defaults: {
styleHtmlContent: true
},

width:'100%',
tabBar: {

docked: 'top',
//layout: {type:'hbox',pack: 'centet'},
//autoScroll:true,
//directionLock: true,

width:'100%',


scrollable: {
direction: 'horizontal',
directionLock:true
}




},


items: [
{
title: 'Home',
iconCls: 'home',
html: 'Home Screen'
},
{
title: 'Contact',
iconCls: 'user',
html: 'Contact Screen'
},
{
title: 'Contact',
iconCls: 'user',
html: 'Contact Screen'
},
{
title: 'Contact',
iconCls: 'user',
html: 'Contact Screen'
},
{
title: 'Contact',
iconCls: 'user',
html: 'Contact Screen'
},
{
title: 'Contact',
iconCls: 'user',
html: 'Contact Screen'
}
]
});

mitchellsimoens
23 Jan 2013, 10:20 AM
Is this for Sencha Touch 2?