Skip to content

(bug) cdk-virtual-scroll-viewport unfluency when item height is uncertain. #13806

@eusen

Description

@eusen

Bug, feature request, or proposal:

image
In the official example, I make each element have a different height, and then during the test, I found that there was unfluency when the next two elements were different in height.

What is the expected behavior?

Views slide smoothly

What is the current behavior?

Views slide unfluency

What are the steps to reproduce?

<div class="example-item-detail" [style.height.px]="index % 2===0 ? 100 : 20">Item: {{item}}</div>

What is the use-case or motivation for changing an existing behavior?

Repair problems

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Same as example

Is there anything else we should know?

no~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions