Page 1 of 1

Table Scroll Flexible Viewport

Posted: 08 Jul 2021, 12:20
by ankushb
Hello,

I am trying to implement a table that resizes with viewport changes and shows the scroll bar to scroll items in the table. In the example on link https://primefaces.org/primeng/showcase/#/table/scroll under section "Flexible Viewport" you have an example of just what I need, with only difference being my table is not inside of a dialog box.

Now i tried to acheive the same without dialog box and the problem is that the scroll bar remains disabled.

Please see my stackblitz highlighting the issue. https://stackblitz.com/edit/primeng-tab ... index.html

Note I have added

Code: Select all

<body style="overflow:hidden;">
as i dont want the scroll bar on the browser, i just want it on the table. The above problem does not go away if i change the overflow on body anyway.
Can you suggest how i fix this please ?

Regards,
Ankush Brahmbhatt

Re: Table Scroll Flexible Viewport

Posted: 10 Jul 2021, 22:25
by merve7

Re: Table Scroll Flexible Viewport

Posted: 13 Jul 2021, 19:13
by ankushb
Thank you, I got to the bottom of the problem, I was setting overflow without setting the height. So once i set the height, it all started working.

Thanks for your help anyway.

Regards,
Ankush

Re: Table Scroll Flexible Viewport

Posted: 14 Jul 2021, 15:30
by merve7
You're welcome, glad to hear that :)

Regards,
Merve Özçifçi