angular / angular/components

Dynamic viewport height

Aperta
#14,037 6 commenti 19 reazioni 0 assegnatari Vedi su GitHub
area: cdk/scrolling area: material/table feature P3
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### 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?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia eseguendo la riproduzione collegata in StackBlitz e analizza il comportamento di cdk-virtual-scroll-viewport quando la sua altezza non è definita. Il lavoro è completo quando la tabella cresce con il suo contenuto fino a un’altezza massima configurata, mantenendo disponibile lo scorrimento virtuale a quel limite.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.