Scrollable <p-dataTable> header does not get displayed within a <p-dialog>
Bug report
Current behavior When trying to add a Scrollable dataTable (scrollable=true; scrollHeight=100px) within a Dialog, the header of the DataTable does not get displayed correctly. It works fine with a non-Scrollable dataTable.
Expected behavior The table should be displayed correctly
-
PrimeNG version: 4.0.0 (Angular 4.1.2)
-
Browser: all
-
Language: TypeScript 2.3.2
I have the exact same issue, the header of the table specifically gets messed up as soon as I specify the scrollable attribute.
I'm also facing this problem. I had to disable scrollable attribute for now but we need it so a fix is really welcome.
Looks good to me;
<p-dialog header="Godfather I" [(visible)]="display" modal="modal" [responsive]="true" [width]="400" [minWidth]="200">
<p-dataTable [value]="cars" scrollable="true" scrollHeight="200px">
<p-header>Vertical</p-header>
<p-column field="vin" header="Vin"></p-column>
<p-column field="year" header="Year"></p-column>
<p-column field="brand" header="Brand"></p-column>
<p-column field="color" header="Color"></p-column>
</p-dataTable>
</p-dialog>
Your headers may be off if you apply a table-layout style of 'auto' to the table.