Open isaacguo opened 2 years ago
You could add for the head some style with
position: sticky;
z-index: 10;
Sounds little bit hacky especially since you already provided a property for being sticky. But at least this fixes this problem. I believe as well that #15885 is somehow related to this issue.
The problem appears as well if you have two rows in the column header. As a base one could use https://stackblitz.com/edit/angular-material-table-multiple-header-rows?file=app%2Ftable-basic-example.css
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When scrolling down the table, table offsets 1px up
Reproduction
Steps to reproduce:
border: 1px solid red
so that it is easier to notice the issueExpected Behavior
Table border should never offset
Actual Behavior
Border top and bottom offsets 1px down and up along with the scrolling up and down
Environment