constantin-p / cp-react-tree-table

A fast, efficient tree table component for ReactJS.
https://constantin.software/cp-react-tree-table
MIT License
94 stars 27 forks source link

Have a height scroll issue with cp-react-table #24

Closed shrutimalkood closed 3 years ago

shrutimalkood commented 4 years ago

I am unable to get the proper height with all rows without scroll.

On expand of 1 row few rows at the end are hidden.

MartinJesu commented 4 years ago

I am also facing same kind of issue

constantin-p commented 4 years ago

I am also facing same kind of issue

Hi @MartinJesu,

Can you confirm being able to reproduce this issue with the latest version of the library v1.0.0-beta.9? If so, it would be great if you could share an example on JSFiddle, that can be used to reproduce the issue.

zoness32 commented 4 years ago

I can confirm this is an issue in the latest version. Kinda breaks the whole thing.

image

zoness32 commented 3 years ago

After forking the repo and digging into the code for a couple days, I realized that the issues I've been having were due to CSS styles I was applying in my own app. As far as I can tell there is no issue with this library. In my case I was trying to manipulate row heights to make other aspects of the row fit. The proper way to influence row height is to add a "height" property to the objects in your data array.