Wrong display scrollbar space in header of p-table, when scrollable is used.
[x] bug report
https://stackblitz.com/edit/primeng-tablevirtualscroll-demo-p41jus?file=src%2Fapp%2Fapp.component.ts
Angular version: 11.0.0 PrimeNG version: 11.0.0
When property scrollable=true is set to p-table and we have only few rows, there is "scrollbar space" in header, but for data scrollbar is not shown. I need that for filter data with virtualscroll enabled - it can return 3 or 3000 rows.

This bug also manifests without virtual scroll: If scrollable is set but scrollHeight isn't, e.g., you want the table to have horizontal scroll but not vertical.
We are on 11.2.1 and p-datatable-scrollable-body has overflow-y: scroll as an inline style so the scroll bar is always there. We would like to override to auto so the scrollbar only appears when the table is scrollable but if we try to we encounter this issue. I dont see how you have the scrollbar missing though.
Fyi this bug also affects TreeTable
Any update on this issue? I'm currently having problems with this one. As a temp workaround i'm forcing a scrollbar on y-axis. This is rather ugly but only solution for now I guess.
Any update on this issue? I'm currently having problems with this one. As a temp workaround i'm forcing a scrollbar on y-axis. This is rather ugly but only solution for now I guess.
This workaround unfortunately doesn't really fix the issue on a Mac when the user has the Show scroll bars preferences set to something other than Always i.e. General > Show scroll bars: > Automatic/When Scrolling
This should be fixed. Is really annoying.
@hugovic We spent a lot of time with this issue, and eventually chose to override the scrollbars styles (wrapped in selectors to target the table). Very similar to https://www.section.io/engineering-education/custom-scroll-bar/
It has already been fixed with table implementation. Please use the latest PrimeNg version.
Best Regards,
This issue is still there in primeNg 14.0.0