angular / angular/components

feature(CdkVirtualScrollViewport): allow to scroll to center. method: scrollToIndex

Open
#21,430 2 comments 14 reactions 0 assignees View on GitHub
area: cdk/scrolling feature P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

#### Feature Description

Allow scrolling to index and center the position.
method: scrollToIndex
component: CdkVirtualScrollViewport

#### Use Case

Scroll into view and center an item.

ex: see HTML scrollToIndex options:

{
behavior: "auto",
block: "center",
inline: "center",
}

Contributor guide

Open the contributing guide

Research direction

Begin with CdkVirtualScrollViewport and its scrollToIndex method. Inspect how index scrolling currently works, then define completion as allowing the requested item to be positioned in the center, consistent with the proposed scroll options.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.