Use CDKs scrollTo

This commit is contained in:
shamoon
2025-11-19 13:00:30 -08:00
parent 377942c4f2
commit 598b6e4e21

View File

@@ -146,9 +146,7 @@ export class LogsComponent
scrollToBottom(): void { scrollToBottom(): void {
this.changedetectorRef.detectChanges() this.changedetectorRef.detectChanges()
if (this.logContainer) { if (this.logContainer) {
// AutoSizeVirtualScrollStrategy does not support scrollToIndex this.logContainer.scrollTo({ bottom: 0 })
const element = this.logContainer.elementRef.nativeElement
element.scrollTo({ top: element.scrollHeight })
} }
} }
} }