angular-infinite-list
angular-infinite-list copied to clipboard
List not visible until scrolled
I am using the observable approach - copied the code straight from here and into my project.
Everything works as it should apart from the initial load. This list loads and you can see the items get populated as the scrollbar appears, however none of my items appear until i physically scroll.
I have placed A simple rounded image as each item - set width and height with horizontal scroll enable.
I try adding the change detector in once my list in fetched and stored, but this makes no difference.
annnnnnnnddd I figured it out - I initialise the array as an empty array and then set data once it is fetched from ym back end. Therefore the scroll directive loads it with no data and there is not detection change once the data is pushed in - Adding:
<ng-container *ngIf="data.length > 0>
fixes this as it wont load until the list has data in... in case anyone else has this issue 💃
I am very sorry, because the work is too busy, I have not maintained this library for some time. I am really sorry, I have time to check your question.