Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(MatTable): Vertical languages rotated and sticky columns #30542

Open
1 task done
russelporosky opened this issue Feb 24, 2025 · 0 comments
Open
1 task done

bug(MatTable): Vertical languages rotated and sticky columns #30542

russelporosky opened this issue Feb 24, 2025 · 0 comments
Labels
needs triage This issue needs to be triaged by the team

Comments

@russelporosky
Copy link

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

18

Description

When there are multiple sticky columns and a column has the writing-mode: vertical-lr CSS rule applied (and assuming it is not the last sticky column), the table does not calculate the width of the column correctly. It uses the default horizontal-tb mode to calculate the width and uses that instead, causing subsequent sticky columns to overlap with non-sticky columns and creates a blank space between the column with the vertical-lr rule and the next sticky column.

Reproduction

StackBlitz link: https://stackblitz.com/edit/components-issue-starter-6mfsadjh?file=src%2Fmain.ts,package.json
Steps to reproduce:

  1. First two columns are sticky
  2. One non-sticky column has width: 100% to force column compression

Expected Behavior

The second column should have a left value that matches the width of the first column.

Actual Behavior

The second column uses unrotated column width as its left value

Image

Environment

  • Angular: 19
  • CDK/Material: 19
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): MacOS
@russelporosky russelporosky added the needs triage This issue needs to be triaged by the team label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

1 participant