bug(cdkTextareaAutosize): Autosize does not properly compute line heights when min-height or height is set via css
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### 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 `height` or `min-height` is set on a `textarea`, cdkTextareaAutosize does not properly calculate the line height.
I have a pull request ready to fix this issue, and will submit it shortly.
### Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-mopjkj?file=src%2Fapp%2Fexample-component.css
### Expected Behavior
`height` and `min-height` should not affect the line height used to calculate the height based on min rows.
### Actual Behavior
`height` and `min-height` do affect the line height.
### Environment
- Angular: 16.2
- CDK/Material: 16.2
- Browser(s): Chrome (current)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con l’implementazione di cdkTextareaAutosize e riproduci il comportamento utilizzando l’esempio StackBlitz collegato, in particolare il suo src/app/example-component.css. Verifica in che modo CSS height e min-height influiscono sull’altezza della riga calcolata, quindi conferma che il dimensionamento di min-row non utilizza più questi valori.
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
- 25/100