primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Scrollable <p-dataTable> header does not get displayed within a <p-dialog>

Open ymuller opened this issue 9 years ago • 4 comments

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

ymuller avatar May 12 '17 07:05 ymuller

I have the exact same issue, the header of the table specifically gets messed up as soon as I specify the scrollable attribute.

kumotaicho avatar May 12 '17 07:05 kumotaicho

I'm also facing this problem. I had to disable scrollable attribute for now but we need it so a fix is really welcome.

melocotton avatar May 12 '17 07:05 melocotton

Looks good to me;

screen shot 2017-06-29 at 12 07 48
<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>

cagataycivici avatar Jun 29 '17 09:06 cagataycivici

Your headers may be off if you apply a table-layout style of 'auto' to the table.

albus-sonitus avatar Aug 24 '18 16:08 albus-sonitus