fix autogrow
This commit is contained in:
parent
4ba6c1f119
commit
6b0ef5cca1
|
@ -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`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue