daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 520 forks source link

Fix for issue #518 where scrollTop returns a decimal rather than an integer #519

Open jontsnz opened 7 years ago

jontsnz commented 7 years ago

Hi Daniel,

This fixes the problem where scrollTop is a decimal rather than the expected integer, which stops the virtualPageSelect from fetching the next 10 page numbers. Here's a console debug showing the problem before it is fixed:

scrolltop is decimal not integer

Rounding the scrollTop fixes the problem.

Thanks, John