angular / angular/components

bug(cdk-virtual-scroll): Only shows a few items when using scrollWindow property

Abierto
#25,336 36 comentarios 2 reacciones 0 asignados Ver en GitHub
area: cdk/scrolling P2
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

### Is this a regression?

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

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

_No response_

### Description

When you use the scrollWindow property it only renderers the initial items (the ones inside your min and max buffer settings) after that it is just blank spaces.

It also happens at the angular material show case example, it only show the first 21 items. I tried to use the checkViewportSize() method but of no use.

https://material.angular.io/cdk/scrolling/overview

### Reproduction

https://stackblitz.com/edit/angular-1uahhp?file=src/app/cdk-virtual-scroll-window-scrolling-example.ts

Steps to reproduce:
1. It already happens on the virtual scrolling window example.

### Expected Behavior

It should render new items as you scroll down the page, eventually rendering all the items.

### Actual Behavior

It stops rendering items after the initial ones are rendered.

### Environment

- Angular: 14.1.0
- CDK/Material: 14.1.0
- Browser(s): Chrome, Firefox
- Operating System (e.g. Windows, macOS, Ubuntu): Windows, macOS

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Ejecuta la reproducción vinculada de StackBlitz y compárala con el ejemplo de ventana de desplazamiento virtual de Angular Material. Rastrea el comportamiento de scrollWindow del ejemplo de desplazamiento virtual y verifica que, al desplazarte más allá de los elementos almacenados inicialmente en el búfer, se rendericen elementos posteriores en lugar de un espacio en blanco en Chrome y Firefox.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.