[cdk-virtual-scroll-viewport][mat-table] - sticky headers is not working properly when combining mat-table with cdk-virtual-scroll-viewport
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue
https://stackblitz.com/edit/virtual-scroll-table-sticky-headers
Steps to reproduce:
1. wrap mat-table within a cdk-virtual-scroll-viewport element
2. add sticky: true property to *matHeaderRowDef directive as stated in documentation
3. observe sticky header slide down the viewport after about 10 rows.
#### Expected Behavior
Expect when adding the sticky:true; property to mat-table *matHeaderRowDef directive wrapped within a cdk-virtual-scroll-viewport that the headers remain positioned at the top of the viewport.
#### Actual Behavior
As you scroll the cdk-virtual-scroll-viewport slides the entire mat-table instead of just the row contents wrapped in the tbody element.
#### Environment
- Angular: >= 7
- CDK/Material: >= 7
- Browser(s): chrome, firefox, opera, safari
- Operating System (e.g. Windows, macOS, Ubuntu): all
コントリビューションガイド
調査の方向性
Reproduce the problem using the linked StackBlitz examples with mat-table wrapped in cdk-virtual-scroll-viewport and sticky set on matHeaderRowDef. Investigate the interaction between the virtual scroll viewport and table header positioning; done means the header remains at the top while the table contents scroll across the listed browsers.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100