primereact icon indicating copy to clipboard operation
primereact copied to clipboard

Datatable: Virtualscroll and frozenvalue (frozen rows) hide first rows

Open Kaizer69 opened this issue 2 years ago • 0 comments

Describe the bug

Hi! When in datatable you enable VirtualScroller and you freeze a row, the freezed row show correctly, but the other rows (one or two rows, depend on the height), goes behind the freezed row.

Disabling VirtualScroll, everthing works again correctly. I think you should put a margin-top to VirtualScroll component in Datatable

Reproducer

No response

PrimeReact version

8.6

React version

18.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Create a list of 100 rows (value: dataRows[] )
  2. Enable VirtualScroller in Datatable (eg: virtualScrollerOptions: { itemSize: 25 })
  3. Create a datatable with frozenValue (eg: frozenValue: dataRows[0])
  4. Without scroll, you see that at least first two rows will be hidden by the frozen row.

Expected behavior

No response

Kaizer69 avatar Sep 23 '22 13:09 Kaizer69