angular / angular/components

bug(cdk-virtual-scroll-viewport): Scrollbar scrolls down a distance

未关闭
#20,101 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area: cdk/scrolling needs investigation P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

#### Reproduction

https://stackblitz.com/edit/angular-jwh2bj?file=src%2Fapp%2Fcdk-virtual-scroll-overview-example.html

Steps to reproduce:
1. Click **Menu** button.
2. Click **Remove with problem** button.


#### Expected Behavior

The scrollbar is still keeping the current position.

#### Actual Behavior

It scrolls down some distances.

#### Environment

- Angular: 9.0.0
- CDK/Material: 9.0.0
- Browser(s): Chrome 84.0.4147.89 64 bit
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

贡献指南

打开贡献指南

调研方向

从链接的 StackBlitz 复现开始,并在 cdk-virtual-scroll-viewport 示例中执行 Menu 和 Remove 的问题步骤。确认移除后滚动条会从当前位置移动,然后跟踪相关的 virtual-scroll 行为,并添加或更新覆盖率,使位置保持不变。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。