mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-23 23:49:08 -06:00
Fix scrollToBottom
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user