-
Notifications
You must be signed in to change notification settings - Fork 229
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
Comments
Can you come up with a minimal example app in a jsfiddle?
Kamil Pękala
… Wiadomość napisana przez harshpuidev ***@***.***> w dniu 19.03.2018, o godz. 18:41:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
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/ |
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 |
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. |
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). |
I don't know about a workaround, but this seems to fix. |
@hugoj-goncalves Thanks a lot. Hope that commit will be merged soon !!!!! |
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
The text was updated successfully, but these errors were encountered: