angular-infinite-list icon indicating copy to clipboard operation
angular-infinite-list copied to clipboard

List not visible until scrolled

Open oliverandersencox opened this issue 7 years ago • 2 comments
trafficstars

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.

oliverandersencox avatar Nov 11 '18 14:11 oliverandersencox

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 💃

oliverandersencox avatar Nov 11 '18 15:11 oliverandersencox

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.

drawcall avatar Nov 12 '18 02:11 drawcall