Open
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When scrolling, a table with a sticky header "jumps" if you add an element that has a absolute position. For example, if you display the tooltip and scroll, then the sticky header will change position for a short time.
This is also true with the mat-progress-bar element.
Reproduction
StackBlitz link:
Steps to reproduce:
- Open link
- The sticky header changes the position on scroll when there is another element on the page with absolute position
bandicam.2023-06-15.15-55-02-921.mp4
Expected Behavior
The sticky header should not change position on scroll when there is another element on the page with an absolute position
Actual Behavior
The sticky header changes the position on scroll when there is another element on the page with absolute position
Environment
- Angular: v12, v15, v16
- CDK/Material: v12, v15, v16
- Browser(s): Chrome Version 114.0.5735.110 (Official Build) (64-bit)
- Operating System (e.g. Windows, macOS, Ubuntu): Windows