fix autogrow

This commit is contained in:
Nicolas Constant 2019-07-27 12:50:50 -04:00
parent 4ba6c1f119
commit 6b0ef5cca1
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 3 additions and 3 deletions

View File

@ -591,10 +591,10 @@ export class CreateStatusComponent implements OnInit, OnDestroy {
}
private autoGrow() {
let scrolling = (this.replyElement.nativeElement.scrollHeight + 25);
let scrolling = (this.replyElement.nativeElement.scrollHeight);
if (scrolling > 135) {
//this.replyElement.nativeElement.style.height = `0px`;
if (scrolling > 110) {
this.replyElement.nativeElement.style.height = `0px`;
this.replyElement.nativeElement.style.height = `${this.replyElement.nativeElement.scrollHeight}px`;
}
}