Skip to content

Commit

Permalink
Fixed #9326 - Alignment issue on Scrollable Datatable
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Sep 29, 2020
1 parent 6acda3f commit a365b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2261,7 +2261,7 @@ export class TableBody implements OnDestroy {
</div>
</div>
<ng-container *ngIf="!dt.virtualScroll; else virtualScrollTemplate">
<div #scrollBody class="p-datatable-scrollable-body" [ngStyle]="{'max-height': dt.scrollHeight !== 'flex' ? scrollHeight : undefined}">
<div #scrollBody class="p-datatable-scrollable-body" [ngStyle]="{'max-height': dt.scrollHeight !== 'flex' ? scrollHeight : undefined, 'overflow-y': !frozen && dt.scrollHeight ? 'scroll' : undefined}">
<table #scrollTable [class]="dt.tableStyleClass" [ngStyle]="dt.tableStyle">
<ng-container *ngTemplateOutlet="frozen ? dt.frozenColGroupTemplate||dt.colGroupTemplate : dt.colGroupTemplate; context {$implicit: columns}"></ng-container>
<tbody class="p-datatable-tbody" [pTableBody]="columns" [pTableBodyTemplate]="frozen ? dt.frozenBodyTemplate||dt.bodyTemplate : dt.bodyTemplate" [frozen]="frozen"></tbody>
Expand Down

0 comments on commit a365b7a

Please sign in to comment.