forked from EVOgeek/Vmeda.Online
MOBILE-2354 core: Fixed initial textarea resize in auto-rows directive
This commit is contained in:
parent
349df95d7e
commit
c580f86bc1
@ -47,8 +47,11 @@ export class CoreAutoRowsDirective {
|
||||
/**
|
||||
* Resize after content.
|
||||
*/
|
||||
ngAfterViewContent(): void {
|
||||
this.resize();
|
||||
ngAfterViewInit(): void {
|
||||
// Wait for rendering of child views.
|
||||
setTimeout(() => {
|
||||
this.resize();
|
||||
}, 300);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user