diprokon / ng-table-virtual-scroll

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

Triggering scroll by code does not work. #16

Closed benedetto-kotzaneck closed 4 years ago

benedetto-kotzaneck commented 4 years ago

I want to trigger the scroll of the CdkVirtualScrollViewport by calling scrollToIndex.

Expected behaviour:

Actually nothing happens.

Worked around the issue by using the scrollBy function of the viewport nativeElement. But still, the issue remains.

duxor commented 4 years ago

@BenJanaka yeah, something is wrong with scrollToIndex method but scrollToOffset should work.

In my case, there is a bug when I have scrollToOffset but without smooth option - sticky header is not at the top of the table.

diprokon commented 4 years ago

Fixed in 1.3.2