Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    Italy
    Posts
    84
    Vote Rating
    4
    Tegola is on a distinguished road

      0  

    Default List "forgets" its items when scrolling

    List "forgets" its items when scrolling


    Hello,
    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:
    http://www.senchafiddle.com/#PHRyc

    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.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,654
    Vote Rating
    903
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    Italy
    Posts
    84
    Vote Rating
    4
    Tegola is on a distinguished road

      0  

    Default


    Here's the right url for the fiddle:
    http://new.senchafiddle.com/#/f383W/

    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.

  4. #4
    Sencha User
    Join Date
    Jul 2012
    Location
    Italy
    Posts
    84
    Vote Rating
    4
    Tegola is on a distinguished road

      0  

    Default


    I'm bumping this up since it's been closed without even waiting for me to provide the correct test case.

  5. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    3
    Vote Rating
    0
    persist0331 is on a distinguished road

      0  

    Default


    Hi Tegola,
    Have you resolve this problem, I also met this problem, items just revert when scrolling.

  6. #6
    Sencha User
    Join Date
    Jul 2012
    Location
    Italy
    Posts
    84
    Vote Rating
    4
    Tegola is on a distinguished road

      0  

    Default


    Hello, sorry for the delay. I'm sorry I can't test it right now, I'll let you know once I do!

  7. #7
    Sencha User
    Join Date
    Mar 2012
    Posts
    3
    Vote Rating
    0
    persist0331 is on a distinguished road

      0  

    Default


    It's OK, I just update sencha touch from 2.1 to 2.2 and the problem disappeared~ anyway, thank you all the same.

Thread Participants: 2

Tags for this Thread