NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.94k forks source link

textarea autosize 控制文本框高度有误差 #7203

Closed stingshen closed 2 years ago

stingshen commented 2 years ago

Reproduction link

https://stackblitz.com/edit/angular-evwt1z?file=src%2Fapp%2Fapp.component.ts

Steps to reproduce

  1. 创建一个 autosize 的 textarea
  2. 填入一定数量的字符串
  3. 发现字符串高度超过文本框高度后,文本框并没有自动调高

What is expected?

不会出现滚动条,文本框自动调整高度

What is actually happening?

文本框并没有自动调高

Peek 2022-01-13 15-14

Environment Info
ng-zorro-antd 13.0.0
Browser Chrome Version 97.0.4692.71
zorro-bot[bot] commented 2 years ago

Translation of this issue:

TextArea AutoSize Control Text Box Highness Error

reproduction link

[https://stackblitz.com/edit/angular-evwt1z?file=src%2fapp%2fapp.component.ts](https://stackblitz.com/edit/angular-evwt1z?file=src%2fApp%2FAPP. Component.ts)

steps to reproduce

  1. Create an AutoSize Textarea
  2. Fill in a certain number of strings
  3. After the string height exceeds the text box height, the text box does not automatically adjust.

What is expected?

No scroll bar, text box automatically adjusts the height

What is actually happens?

Text box does not have automatic adjustment

! [Peek 2022-01-13 15-14] (https://user-images.githubuserContent.com/6214067/149283322-5312C840-46D6-41CB-9E06-68940796D4F0.GIF)

ENVIRONMENT INFO
Ng-Zorro-ANTD 13.0.0
Browser Chrome Version 97.0.4692.71