Dynamic viewport height
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### Bug, feature request, or proposal:
Dynamically adjust the size of the table according to its content
#### What is the expected behavior?
It would be interesting to be able to define only the maxheight of the table and to adjust it dynamically according to the amount of data it contains until it reaches the maxheight. When the size is max height the virtualscrolling is available.
#### What is the current behavior?
When the cdk-virtual-scroll-viewport has no defined height it does not display all available values. If the height is defined the viewport displays all lines but when it is undefined just a few lines are displayed.
#### What are the steps to reproduce?
[Stackblitz](https://stackblitz.com/edit/angular-cdk-demo-virtual-scroll-jqpazr?embed=1&file=app/app.component.ts)
#### What is the use-case or motivation for changing an existing behavior?
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
latest cdk-experimental
#### Is there anything else we should know?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par exécuter la reproduction StackBlitz liée et examinez le comportement de cdk-virtual-scroll-viewport lorsque sa hauteur n’est pas définie. Le travail est terminé lorsque le tableau s’agrandit avec son contenu jusqu’à une hauteur maximale configurée, tout en conservant le défilement virtuel disponible à cette limite.
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é
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100