bug(cdkTextareaAutosize): Autosize does not properly compute line heights when min-height or height is set via css
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### 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)
Guía de contribución
Línea de trabajo
Comienza con la implementación de cdkTextareaAutosize y reproduce el comportamiento utilizando el ejemplo vinculado de StackBlitz, especialmente su src/app/example-component.css. Verifica cómo CSS height y min-height afectan a la altura de línea calculada y, a continuación, confirma que el dimensionamiento de min-row ya no utiliza esos valores.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 25/100