angular / angular/components

bug(table): Sticky columns table can't fixed the width of columns that sticked

オープン
#25,396 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: cdk/table P2
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### Is this a regression?

- [x] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

The table show with more than one sticky column, when I scroll the table horizontal,the width of the sticky columns can't keep width size
I need to keep the sticky columns when I scoll the table horizontal, how to do?
Thanks!

### Reproduction

https://stackblitz.com/run?file=src/app/table-sticky-columns-example.ts
This is a demo of one sticky colum,I need a table more than one sticky cloumn and need to keep the sticky columns widht when I scorll the table horizontal

### Expected Behavior

I hope to keey the widht of sticky columns,when I scroll a sticky columns table horizontal.

### Actual Behavior

I see the sticky columns resize width when I scroll the table horizontal. I hope to keey the widht of sticky columns

### Environment

Angular CLI: 13.1.4
Node: 16.13.1
Package Manager: npm 8.1.2
OS: win32 x64

Angular: 13.1.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package Version
------------------------------------------------------------
@angular-devkit/architect 0.1301.4
@angular-devkit/build-angular 13.1.4
@angular-devkit/core 13.1.4
@angular-devkit/schematics 13.1.4
@angular/cdk 13.3.6
@angular/cli 13.1.4
@angular/material 13.3.6
@angular/material-moment-adapter 13.3.6
@schematics/angular 13.1.4
rxjs 7.4.0
typescript 4.5.5

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされている StackBlitz デモの src/app/table-sticky-columns-example.ts で再現から始め、複数の sticky 列で動作を確認してください。テーブルを水平方向にスクロールしている間も sticky 列が幅を維持すれば、issue は解決です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。