diff --git a/src-ui/src/app/components/admin/logs/logs.component.ts b/src-ui/src/app/components/admin/logs/logs.component.ts index 499c74f56..a838e8ff5 100644 --- a/src-ui/src/app/components/admin/logs/logs.component.ts +++ b/src-ui/src/app/components/admin/logs/logs.component.ts @@ -146,7 +146,9 @@ export class LogsComponent scrollToBottom(): void { this.changedetectorRef.detectChanges() if (this.logContainer) { - // this.logContainer.scrollToIndex(this.logs.length - 1) + // AutoSizeVirtualScrollStrategy does not support scrollToIndex + const element = this.logContainer.elementRef.nativeElement + element.scrollTo({ top: element.scrollHeight }) } } }