Fix scrollToBottom

This commit is contained in:
shamoon
2025-11-19 11:26:56 -08:00
parent c1a1ada6d7
commit a094dfb67e

View File

@@ -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 })
}
}
}