I am populating a PrimeNG TreeTable with data of variable content. The rows which display the scrollable columns can therefore have a variable height, depending on the data content of each column and the width of the viewport (since the content wraps when the viewport shrinks, thus increasing the scrollable column row height).
How can I set the row height of the frozen columns to match the row height of the scrollable columns? (I would have thought this would be the default behaviour and can't imagine why we would need any other behaviour). Surely there is a simple way to do this?
I have tried iterating through the rows of scrollable columns in ngAfterViewInit and then updating the row height of the frozen columns but this is too late in the lifecycle and results in the frozen columns disappearing entirely. And even if it worked it would be a nasty workaround.
Answering my own question here:
IMHO, the PrimeNg TreeTable element itself ought to support matching of variable height body rows with their respective frozen columns, but below is a workaround which solves the problem:
HTML:
Typescript
Service: