primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Wrong display scrollbar space in header of p-table, when scrollable is used.

Open thornidlo opened this issue 5 years ago • 9 comments

[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.

image

thornidlo avatar Dec 15 '20 08:12 thornidlo

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.

adama357 avatar Feb 02 '21 16:02 adama357

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.

CD-UNCC avatar Feb 12 '21 20:02 CD-UNCC

Fyi this bug also affects TreeTable

adama357 avatar Feb 23 '21 16:02 adama357

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.

MrCosmo avatar Mar 30 '21 10:03 MrCosmo

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

briancodes avatar Apr 06 '21 17:04 briancodes

This should be fixed. Is really annoying.

hugovlc avatar Oct 19 '21 17:10 hugovlc

@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/

briancodes avatar Oct 19 '21 19:10 briancodes

It has already been fixed with table implementation. Please use the latest PrimeNg version.

Best Regards,

mertsincan avatar Jun 28 '22 12:06 mertsincan

This issue is still there in primeNg 14.0.0

wondie avatar Aug 04 '22 23:08 wondie