PDA

View Full Version : [B3] Infinite Scrolling



morfeusz
24 Feb 2012, 1:52 AM
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?

mitchellsimoens
24 Feb 2012, 11:37 AM
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.

morfeusz
24 Feb 2012, 1:08 PM
When you reload the store (some filtering) and you have less data from server.
Then scrollbar don`t fit to new totalCount of store:
32122
And you have many of white space down from last record.
How force recalculating the scrollBar?

rspaeth
24 Feb 2012, 2:26 PM
I have had this problem since 4.0.2a.

http://www.sencha.com/forum/showthread.php?133337-desire-to-reload-the-buffered-scrolling-example-with-different-data-via-user-a

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

kevhender
24 Feb 2012, 2:38 PM
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

(http://www.sencha.com/forum/showthread.php?176882)Hopefully it is fixed soon!

strictlyphp
23 May 2012, 1:18 AM
I've been able to fix scrolling issues after a data reload (different data returned after changing store.extraParams) by calling

store.pageMap.clear();
first (before any load method).