Skip to content

Sticky columns are not correctly positionned when there are 2 sticky columns on the left #18002

Open
@ghusse

Description

@ghusse

Reproduction

Reproduced on stackblitz

Steps to reproduce:

  1. Define a mat-table with 2 sticky columns on the left
  2. Use the horizontal scrollbar
  3. Position of the second column is not correctly computed

Expected Behavior

What behavior were you expecting to see?

Two sticky columns, correctly positioned and not moving when using the horizontal scrollbar.

Actual Behavior

What behavior did you actually see?

  1. Sometimes, the second sticky column is actually moving when using the horizontal scrollbar (see the 3rd example on my stackblitz)
  2. Sometimes the second sticky column is sticky, but not correctly positioned (see the 2nd example on my stackblitz: this column is too far on the right).

Environment

  • Angular: 7, 8
  • CDK/Material: 7, 8
  • Browser(s): Firefox 71.0, Chromium 75.0.3770.142
  • Operating System: Windows 10, Ubuntu 18.04

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions