Skip to content

bug(table): Table with sticky header 'jumping' #27313

Open
@AntonEvseev

Description

@AntonEvseev

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:

  1. Open link
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/progress-bar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions