Page 1 of 1

Sidebar with p-table scrolling problem

Posted: 17 Nov 2022, 15:29
by perforator
Hello,

I am using the current libraries.

I have used the PrimeBlocks sidebar layout example (Dim Sidebar with Topbar) and a PrimeNG p-table in the content area. If the p-table has some more columnes the scrolling breaks as the scrollbar appears all over the screen instead only the p-table div.
If using [scrollable]="true" the table header scrolls into the menu.
In the meantime I am using p-dataview.

https://ibb.co/mTZqZx7
https://ibb.co/6Hp205B


Can anybody confirm this?

Thanks alot

Re: Sidebar with p-table scrolling problem

Posted: 18 Nov 2022, 11:05
by gucal
Hi,

Thank you for contact with us. Could you please post a code example that explains the issue in more detail?

Thanks.

Re: Sidebar with p-table scrolling problem

Posted: 18 Nov 2022, 17:36
by perforator

Re: Sidebar with p-table scrolling problem

Posted: 24 Nov 2022, 15:25
by gucal
Please add the min width style to the p-table component as in the primeng document.

Ex: [tableStyle]="{'min-width': '40rem'}"