-
26 Jan 2012 8:38 AM #1
[PR4] Setting 'scrollable' on TabPanel has no effect
[PR4] Setting 'scrollable' on TabPanel has no effect
This code doesn't work as described in documentation
Code:Ext.define('app.view.Main', { extend: 'Ext.Container', config: { items: [ { xtype: 'tabpanel', scrollable: { direction: 'horizontal' }, items: [ { // ..........................
-
26 Jan 2012 9:20 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
Thank you for the report.
-
26 Jan 2012 10:40 AM #3
This is a documentation error. You cannot set scrollable on a TabPanel. Instead, you set scrollable on any items within that tab panel that you want to scroll.
Something like this:
Thanks!Code:Ext.Viewport.add({ xtype: 'tabpanel', items: [ { title: 'one', html: 'one', scrollable: true }, { title: 'two', html: 'two' } ] });Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
29 Jan 2012 6:55 AM #4
Hi, and thank you for the fast replies.
Im not sure if Robert understood me correct, but what im trying to accomplish is basically a TabPanel with scrollable header, something like this toolbars: http://docs.sencha.com/touch/2-0/touch/examples/toolbars/index.html
So on devices with small width and lots of Tabs, there will be option to pull the Tab header, left or right to see more tabs.
So is it something that already been fixed for the next release, or should I use toolbars insted?
EDIT:
I got it working with this configuration:
Code:xtype: 'tabpanel', tabBar: { scrollable: { direction: 'horizontal' } },
-
29 Jan 2012 11:25 AM #5
Ah, sorry. Yes, that would be how you do it!
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1621
in
2.0.


Reply With Quote