Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pietschy opened this issue May 20, 2024 · 1 comment
Open

Comments

@pietschy
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant