aguerra10
21 Nov 2011, 12:59 PM
Hi all,
I am trying to disable scroll in a toolbar. I want to show a list under a toolbar and only want to make the list scrollable, however when I scroll the list, the toolbar is also scrolling.
(http://docs.sencha.com/touch/2-0/#!/api/Ext.Container-cfg-scrollable)
Does anybody know how to solve this? Some code here... Thanks!!!
layout: {
type: 'vbox',
animation: {
type: 'slide',
direction: 'left',
duration: 500,
}
},
items: [
{
xtype: 'toolbar',
id: 'homeTopBar',
title: 'Home',
docked: 'top',
},
{
xtype: 'list',
id: 'homeScreen',
flex: 1,
itemTpl: '{title}',
store: {
fields: ['title', 'url'],
data: [
{title: 'Constituents', url: 'ext-scheduler-2-0-upgrading-to-ext-js-4'},
{title: 'Developers', url: 'sencha-touch-2-what-to-expect'},
{title: 'Administrators', url: 'senchacon-2011-now-packed-with-more-goodness'},
{title: 'Guests', url: 'new-ext-js-4-documentation-center'}
]
}
I am trying to disable scroll in a toolbar. I want to show a list under a toolbar and only want to make the list scrollable, however when I scroll the list, the toolbar is also scrolling.
(http://docs.sencha.com/touch/2-0/#!/api/Ext.Container-cfg-scrollable)
Does anybody know how to solve this? Some code here... Thanks!!!
layout: {
type: 'vbox',
animation: {
type: 'slide',
direction: 'left',
duration: 500,
}
},
items: [
{
xtype: 'toolbar',
id: 'homeTopBar',
title: 'Home',
docked: 'top',
},
{
xtype: 'list',
id: 'homeScreen',
flex: 1,
itemTpl: '{title}',
store: {
fields: ['title', 'url'],
data: [
{title: 'Constituents', url: 'ext-scheduler-2-0-upgrading-to-ext-js-4'},
{title: 'Developers', url: 'sencha-touch-2-what-to-expect'},
{title: 'Administrators', url: 'senchacon-2011-now-packed-with-more-goodness'},
{title: 'Guests', url: 'new-ext-js-4-documentation-center'}
]
}