20 Feb 2013 6:12 AM #1
List "forgets" its items when scrolling
I found that, when adding a docked item to a list and scrolling until the docked item it is out of view, that item can't be found anymore by ComponentQuery.
Here's a test case:
Open your console and you'll see that the container reference is found at the beginning, and is lost once it's out of the view bounds.
20 Feb 2013 11:49 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
The link you posted is the default code for the fiddle.
If you are using ST 2.1.0+ then the list supports an infinite data set. The way it does this is manages the rows and reuses them. So when you scroll you will only have say 10 rows even if you have 10,000 records in the store.
This isn't a bug, it's expected behavior.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
21 Feb 2013 12:21 AM #3
Here's the right url for the fiddle:
The lost item it's not a store record, it's a manually added component.
Is it still expected behavior?
Note: looks like SenchaFiddle is having some issues at the moment. If the code doesn't run, copy and paste in a new fiddle.
28 Feb 2013 1:45 AM #4
I'm bumping this up since it's been closed without even waiting for me to provide the correct test case.
18 Apr 2013 11:03 PM #5
Have you resolve this problem, I also met this problem, items just revert when scrolling.
15 May 2013 12:33 AM #6
Hello, sorry for the delay. I'm sorry I can't test it right now, I'll let you know once I do!
15 May 2013 12:43 AM #7
It's OK, I just update sencha touch from 2.1 to 2.2 and the problem disappeared~ anyway, thank you all the same.