1. #1
    Sencha User
    Join Date
    Apr 2009
    Posts
    48
    Vote Rating
    0
    morfeusz is on a distinguished road

      0  

    Default [B3] Infinite Scrolling

    [B3] Infinite Scrolling


    Now scrolling with infinite is almost perfect.
    I have one problem - when you load large data (about 10000 rows) its ok.
    But when you reload the store to lower value of data (about 100), then the scroller dont recalculate and you have meny white space under the last row (from 101 to 10000).
    How can I force recalculate the scroller to fit the totalCount of store?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,541
    Vote Rating
    872
    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 infinite grid example has over 6,000 records total but only returns a portion of it and scrolls just fine. I'm not sure what you are asking then.
    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
    Apr 2009
    Posts
    48
    Vote Rating
    0
    morfeusz is on a distinguished road

      0  

    Default


    When you reload the store (some filtering) and you have less data from server.
    Then scrollbar don`t fit to new totalCount of store:
    example.jpg
    And you have many of white space down from last record.
    How force recalculating the scrollBar?

  4. #4
    Ext JS Premium Member
    Join Date
    Mar 2009
    Posts
    198
    Vote Rating
    2
    rspaeth is on a distinguished road

      0  

    Default


    I have had this problem since 4.0.2a.

    http://www.sencha.com/forum/showthre...ata-via-user-a

    it is not new to beta 3. I never got a chance to write a nice bug for it.

  5. #5
    Ext JS Premium Member
    Join Date
    Apr 2009
    Posts
    65
    Vote Rating
    1
    kevhender is on a distinguished road

      0  

    Default


    I believe you are talking about this issue, which I made a bug for a while back:

    http://www.sencha.com/forum/showthread.php?176882

    Hopefully it is fixed soon!

  6. #6
    Sencha User
    Join Date
    Sep 2010
    Location
    Belgium
    Posts
    29
    Vote Rating
    0
    strictlyphp is on a distinguished road

      0  

    Default


    I've been able to fix scrolling issues after a data reload (different data returned after changing store.extraParams) by calling
    Code:
    store.pageMap.clear();
    first (before any load method).