mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-23 23:49:08 -06:00
try to fix some overflow stuff
This commit is contained in:
@@ -110,7 +110,6 @@ export class LogsComponent
|
||||
})
|
||||
if (hasChanges) {
|
||||
this.logs = parsed
|
||||
this.logContainer?.checkViewportSize()
|
||||
this.scrollToBottom()
|
||||
}
|
||||
},
|
||||
@@ -146,6 +145,9 @@ export class LogsComponent
|
||||
|
||||
scrollToBottom(): void {
|
||||
this.changedetectorRef.detectChanges()
|
||||
this.logContainer?.scrollTo({ bottom: 0 })
|
||||
setTimeout(() => {
|
||||
this.logContainer?.checkViewportSize()
|
||||
this.logContainer?.scrollTo({ bottom: 0 })
|
||||
}, 50)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user