AAE-28655 Fix for datatable not scrolling back up after paginations

This commit is contained in:
Alex Molodyh 2025-01-31 10:16:27 -08:00
parent 0c459227a8
commit 971fde213a
No known key found for this signature in database
GPG Key ID: 64B4F1C7AEE95C47

View File

@ -174,12 +174,13 @@
</div> </div>
<div <div
*ngIf="!loading"
class="adf-datatable-body" class="adf-datatable-body"
[ngClass]="{ 'adf-blur-datatable-body': blurOnResize && (isDraggingHeaderColumn || isResizing), 'adf-datatable-body__draggable': enableDragRows && !isDraggingRow, 'adf-datatable-body__dragging': isDraggingRow }" [ngClass]="{ 'adf-blur-datatable-body': blurOnResize && (isDraggingHeaderColumn || isResizing), 'adf-datatable-body__draggable': enableDragRows && !isDraggingRow, 'adf-datatable-body__dragging': isDraggingRow }"
cdkDropList cdkDropList
[cdkDropListDisabled]="!enableDragRows" [cdkDropListDisabled]="!enableDragRows"
role="rowgroup"> role="rowgroup">
<ng-container *ngIf="!loading && !noPermission"> <ng-container *ngIf="!noPermission">
<adf-datatable-row *ngFor="let row of data.getRows(); let idx = index" <adf-datatable-row *ngFor="let row of data.getRows(); let idx = index"
cdkDrag cdkDrag
[cdkDragDisabled]="!enableDragRows" [cdkDragDisabled]="!enableDragRows"
@ -439,7 +440,8 @@
</div> </div>
</div> </div>
</ng-container> </ng-container>
<div *ngIf="!loading && noPermission"
<div *ngIf="noPermission"
role="row" role="row"
class="adf-datatable-row adf-no-permission__row"> class="adf-datatable-row adf-no-permission__row">
<div class="adf-no-permission__cell adf-no-content-container adf-datatable-cell"> <div class="adf-no-permission__cell adf-no-content-container adf-datatable-cell">
@ -449,6 +451,7 @@
</ng-template> </ng-template>
</div> </div>
</div> </div>
</div>
<div *ngIf="loading" class="adf-datatable-row"> <div *ngIf="loading" class="adf-datatable-row">
<div class="adf-no-content-container adf-datatable-cell"> <div class="adf-no-content-container adf-datatable-cell">
<ng-template *ngIf="loadingTemplate" <ng-template *ngIf="loadingTemplate"
@ -457,5 +460,4 @@
</ng-template> </ng-template>
</div> </div>
</div> </div>
</div>
</div> </div>