feat(virtual-scroll): Allow non fixed-sized containers
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### Feature Description
When using virtual scroll the element needs to have a set height, or else, by default it'll be 0. It would be really useful for it to be able to have an automatic height.
#### Use Case
For example, i've got a page with aprox. 37 accordions, each with something between 5 and 15 mat-buttons inside each. When opening one, the opening animation is choppy because of how many are rendered on screen (this bug has already been reported in #8287).
I think this can be mitigated in this use case by only rendering what's visible with a virtual-scroll, but, because the height is dynamic(as, when an accordion needs to open, the size of the containing element changes), i cant give it a specific height, thus i can' use
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par examiner le comportement de cdk-virtual-scroll-viewport décrit dans l’issue et le contexte de performance associé dans #8287. Déterminez comment un viewport sans hauteur fixe devrait réagir lorsque le contenu d’un accordéon s’agrandit ; le travail est considéré comme terminé lorsque les conteneurs à hauteur dynamique peuvent utiliser Virtual Scrolling sans animations d’ouverture saccadées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 30/100