Use AutoSizeVirtualScrollStrategy

This commit is contained in:
shamoon
2025-11-19 11:23:39 -08:00
parent 8c335321cd
commit c1a1ada6d7
4 changed files with 23 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import { ScrollingModule } from '@angular/cdk-experimental/scrolling'
import {
CdkVirtualForOf,
CdkVirtualScrollViewport,
ScrollingModule,
} from '@angular/cdk/scrolling'
import { CommonModule } from '@angular/common'
import {
@@ -28,6 +29,7 @@ import { LoadingComponentWithPermissions } from '../../loading-component/loading
CommonModule,
FormsModule,
ReactiveFormsModule,
CdkVirtualForOf,
CdkVirtualScrollViewport,
ScrollingModule,
],
@@ -144,7 +146,7 @@ export class LogsComponent
scrollToBottom(): void {
this.changedetectorRef.detectChanges()
if (this.logContainer) {
this.logContainer.scrollToIndex(this.logs.length - 1)
// this.logContainer.scrollToIndex(this.logs.length - 1)
}
}
}