Results 1 to 7 of 7

Thread: List "forgets" its items when scrolling

Hybrid View

Previous Post Previous Post   Next Post Next Post
    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
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Location
    Italy
    Posts
    84
    Vote Rating
    4
      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
      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
      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
      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!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •