Primeng: p-table scroll issue

Created on 14 Feb 2018  路  4Comments  路  Source: primefaces/primeng

This is an issue with new Turbo table
When scroll height is chosen which is more than the actual height due to less no of rows, the scroll bar still shows.
Then the headers do not align with actual data rows.
This was an issue in datatable which was resolved.

All 4 comments

Unable to replicate, provide a plunrk please.

You can simply go to the example in the scroll section and zoom to 150% with Google Chrome:
https://www.primefaces.org/primeng/#/table/scroll

The issue, to me, is related to the scroll bar being there or not.

image

Any solution to fix this? Scroll bar should not appear when actual height is less than scroll height

Hi,
I had this problem before, now I found one quick solution for this problem,
you can add below css into your main css file. Then you will not have this problem.

.ui-table-scrollable-header {
overflow-y: scroll;
}

Hope it could solve your problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

miresk picture miresk  路  3Comments

KannanMuruganmony picture KannanMuruganmony  路  3Comments

jisqaqov picture jisqaqov  路  3Comments

Helayxa picture Helayxa  路  3Comments

watalberto picture watalberto  路  3Comments