MOBILE-2354 core: Fixed initial textarea resize in auto-rows directive

main
Albert Gasset 2018-06-11 15:05:35 +02:00
parent 349df95d7e
commit c580f86bc1
1 changed files with 5 additions and 2 deletions

View File

@ -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);
} }
/** /**