Skip to content

sticky matColumnDef don’t work so good #15651

@paulferaud

Description

@paulferaud

What is the expected behavior?

A simple table whose first column is sticky should work.

What is the current behavior?

Does not work good:

  • A the column that are initially hidden have missing styles
  • If more than half the table is hidden, then the first column gets pushed out of the way.

What are the steps to reproduce?

Just create a table, as simple as can be, with the first column being sticky:
https://stackblitz.com/edit/angular-sticky-column-bug?file=src/app/app.component.ts
https://angular-sticky-column-bug.stackblitz.io/

Screenshots:
Initial state: image
Start scrolling: image
Scroll some more: image

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

At least 7.3.6.

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/table

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions