angular / angular/components

Setting dialog max-height does not work

Aperta
#8,493 18 commenti 13 reazioni 0 assegnatari Vedi su GitHub
area: material/dialog P3
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### Bug, feature request, or proposal:
Bug

#### What is the expected behavior?
To be able to change the max-height of the dialog

#### What is the current behavior?
It does not work.

#### What are the steps to reproduce?
http://plnkr.co/edit/X17ETao12PtHTKmpqV5s?p=preview
The dialog in question is configured to be
```
const settings: MatDialogConfig = {
maxWidth: '99vw',
maxHeight: '99vh'
}
```
But the height is the default one. It seems that the `cdk-overlay-0` is correctly styled with `style="max-width: 99vw; max-height: 99vh;"` but the inner `div.mat-dialog-content` has `max-height: 65vh;` which dictates the height.

All the relevant code is in `app.component.ts`.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
All / latest

#### Is there anything else we should know?
Keep up the good work!

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con app.component.ts e la riproduzione Plunker collegata, in cui MatDialogConfig imposta maxWidth e maxHeight, mentre il mat-dialog-content interno mantiene un limite di 65vh. Conferma il vincolo di altezza e considera completata la issue quando il dialog rispetta il max-height configurato.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.