Skip to content
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

Viewport display only one element on page load and display rest of the elements when a scroll is triggered #192

Open
harshpuidev opened this issue Mar 19, 2018 · 8 comments

Comments

@harshpuidev
Copy link

I have used vs-repeat at multiple places and now i see only 1st element out of thousand.

In a viewport, i can display about 15 elements but currently, i see only one and then when I trigger a scroll it displays all elements.
I am using angular 1.5.9

@kamilkp
Copy link
Owner

kamilkp commented Mar 19, 2018 via email

@mikemahony
Copy link

I'm experiencing the same bug. For me, the issue arises when the list I'm repeating over changes but I'm unable to re-create the exact issue in jsFiddle. I am however able to recreate the same outcome by triggering a resize: https://jsfiddle.net/L5t4wdfk/

@Senderek
Copy link

Senderek commented Jun 29, 2018

Same bug for me, when creating a big table with many binds and with scroll bound to 'window' on initial render I get only first row. The plugin is working properly after scrolling down a bit though. As an additional note I can say that vs-repeat is in tbody element

@squidsoup
Copy link

Has anyone managed to find a workaround for this? This appears to be a regression. We upgraded from v1.1.7 to v2.0.9 and have the same issue.

@Ulyssesyi
Copy link

I got the same problem and solve it by the options.
image

@alejandroiglesias
Copy link

I've also stumbled upon this issue and manually setting the size as @Ulyssesyi suggested has worked as a workaround. I would still like to see the root cause solved since I would prefer not to set a fixed size on the elements since size can vary anytime through CSS and forgetting to update the size in the vs-repeat directive would mean breaking the list scrolling (and it's easy to forget that).

@hugoj-goncalves
Copy link

I don't know about a workaround, but this seems to fix.
#224

@thao33
Copy link

thao33 commented Oct 26, 2020

@hugoj-goncalves Thanks a lot.
facing the same problem..

Hope that commit will be merged soon !!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants