primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
9.9k stars 4.52k forks source link

Component: Primeng table with expanded rows and frozen columns (which are represented as table) #14711

Open imotality opened 5 months ago

imotality commented 5 months ago

Describe the bug

While describing primeng table and using expandable table with frozen column, I represented the expanded rows as another p-table. I have added for both of them frozen columns, but when I want to scroll, positioning are wrong, and it only scrolls parent table. I want to connect 2 tables as one to have the same scroll. How can i do that?

Environment

using primeng v.15

Reproducer

No response

Angular version

15

PrimeNG version

15

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18

Browser(s)

No response

Steps to reproduce the behavior

create p-table with frozen columns, and after create expanded rows as representing of another p-table with frozen column and try to scroll it vertically.

Expected behavior

both tables with frozen columns are syncronized

imotality commented 5 months ago
image

the example while scrolling

imotality commented 5 months ago

https://stackblitz.com/edit/io4hpq?file=src%2Fapp%2Fapp.module.ts,src%2Fapp%2Fdemo%2Ftable-row-expand-demo.html