I am having trouble getting virtual scrolling working on a table using Flex Scroll with scrollHeight='flex'
I have an outer element set with a fixed height like so:
<div style="height: 800px">
<h5>Virtual Scroll with Preloaded Data (1000 Rows)</h5>
<p-table
[columns]="cols"
[value]="cars"
[scrollable]="true"
[rows]="100"
scrollHeight="flex"
[virtualScroll]="true"
[virtualRowHeight]="34"
>
...
</p-table>
</div>
You can see this in action here
Changing the scrollHeight to a fixed px height works no problem, but I really need this to fill whatever space is available.
Note that I need this behaving in v12 of primeng too.