-
13 Dec 2011 8:06 AM #1
The Ext.List keeps bouncing back to the top when user tries to scroll
The Ext.List keeps bouncing back to the top when user tries to scroll
Hi Guys,
I have an Ext.List and use an Ext.XTemplate to structure the styling and data from the store.
I browsed for the site via my Android phone and the list does not allow the user (me) to see the list items that are beyond the visible area of the screen.
Any ideas how I could make the list scroll properly?
Many Thanks
Whiplash
-
13 Dec 2011 8:20 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
The parent component to the Ext.List needs to use a layout that manages the list's height like fit layout or card layout
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
13 Dec 2011 8:41 AM #3
has a fit and card layout
has a fit and card layout
Hi Mitchell
thanks for the reply
I have a viewport of new Ext.Panel with layout 'card' which adds the assetsListContainer to its items array which itself has a layout of 'fit' and adds the Ext.List content then ....
I'm by no means an expert, but this seems about right ... no?PHP Code:App.views.viewport = new Ext.Panel({
fullscreen: true,
layout: 'card',
cardAnimation: 'slide',
items: [App.views.assetsListContainer, App.views.assetDetail]
})
App.views.assetsListContainer = new Ext.Panel({
id: 'assetsListContainer',
layout: 'fit',
scroll: 'vertical',
dockedItems: [App.views.assetsListToolbar],
items: [App.views.assetsList]
});
App.views.assetsList = new Ext.List({
...
});


Reply With Quote