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