mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-23 23:49:08 -06:00
Use CDKs scrollTo
This commit is contained in:
@@ -146,9 +146,7 @@ export class LogsComponent
|
||||
scrollToBottom(): void {
|
||||
this.changedetectorRef.detectChanges()
|
||||
if (this.logContainer) {
|
||||
// AutoSizeVirtualScrollStrategy does not support scrollToIndex
|
||||
const element = this.logContainer.elementRef.nativeElement
|
||||
element.scrollTo({ top: element.scrollHeight })
|
||||
this.logContainer.scrollTo({ bottom: 0 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user