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 {
|
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 })
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user