-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding items on top when scrolled down is not working correctly. #87
Comments
I'm running into the same problem. After diving into the code, it seems to be a problem when handling added splices in This condition is introduced in commit 6038310. I'm unfortunately unable to determine what the desired behavior is, and therefore unable to come up with a correct fix. Can someone elaborate on the desired behavior / which scenario this check is applicable? |
The items in view should stay in view even if new items are added above, the only indication of the list change is that the scrollbar should move and be resized. |
… correctly After scrolling down inserting items at the top doesn't work as expected, as it's only making the top buffer bigger. By triggering the scrolling mechanism, the appropriate items are rendered.
We have tested the fix, the original issue seems to be resolved. To replicate the problem add a new button which toggles continues feeding of elements to the list. e.g: toggleFeed(toggle = true) {
if(toggle) {
this.isFeedActive = !this.isFeedActive;
}
if(this.isFeedActive) {
this.addItemLast();
setTimeout(() => { this.toggleFeed(false); }, 500);
}
} |
I am having this issue as well, or a variation of it. I have spotted an error in the code, but I do not understand enough of it to provide a fix. In array-virtual-repeat-strategy.js, function
does not work when the input items array has been reduced in size. Variable
How can I help? This module is very useful, and I would like to help get this issue resolved. |
Resolved (hopefully) by #107 |
I'm submitting a bug report
1.0.0-beta.3.0.1
Please tell us about your environment:
Windows 7
6.2.1
3.9.3
JSPM 0.16.45
all
all
Current behavior:
When adding items to the top of the list while scrolled down a few pages the list in view will be pushed down and no items will be rendered so you will have an empty list.
To reproduce use the sample in this project:
1: in sample\src\phone-list.html replace
with
2: Open the phone-list sample page in a web-browser
3: scroll down a few pages
4: click "Add 1 at top" a few times and the list should be gone.
Expected/desired behavior:
The currently displayed items should not be pushed out of view but the scrollbar should indicate that the list have increased in size OR the list is pushed down and items further up the list is displayed.
Lists that have new items added first do not work when scrolled down.
The text was updated successfully, but these errors were encountered: