diprokon / ng-table-virtual-scroll

Virtual Scroll for Angular Material Table
https://diprokon.github.io/ng-table-virtual-scroll
MIT License
135 stars 42 forks source link

Fixed issue when 'getViewportSize' is zero #8

Closed riwos closed 4 years ago

riwos commented 4 years ago

The issue is when the method: 'this.viewport.getViewportSize()' return zero then other calcualtions always sets up 'start' and 'end' on that same values i.e start = 1 and end =1 or start = 4 and end =4. Then when we calculate new array to dispaly rows the method '_updateChangeSubscription()' has internal method 'data.slice(start,end)' who is always returns empty array.

riwos commented 4 years ago

We do not need anymore.