diprokon / ng-table-virtual-scroll

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

Scroll position jumps up from the bottom when data or layout changes #131

Open pietschy opened 1 month ago

pietschy commented 1 month ago

Hi there,

We have tables that are constantly being updated and we've noticed that we can't scroll to the last rows. While trying to debug it I also noticed it also occurs when I resize the browser.

I can see the resize issue on the examples page on any of the mat table examples. To reproduce, scroll to the last row in a mat table and resize the browser window (I can reproduce in chome, firefox & safari). The CDK example seems to work fine.

Please note in the example it jumps about 1 row but in our app it's jumping about 5 rows.

Any pointers on where I could start looking to help track it down?

Thanks!

pietschy commented 1 month ago

Update:

This was caused by a style regression on our end that changed the header height in css but didn't update the tvItemSize and headerHeight in the template.