-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InfiniteTree nodes/height not calculated correctly with flexbox #8
Comments
As an alternative way, you may use the |
True. However:
|
I found a statement from react-tiny-virtual-list's documentation: * Width may only be a string when scrollDirection is 'vertical'. Similarly, Height may only be a string if scrollDirection is 'horizontal' Since react-infinite-tree's scroll direction is vertical, the "width" prop can either be a number or string like "100%" or "auto", but the "height" prop must be a number in this case. I will update documentation accordingly. Also, I see some issues (clauderic/react-tiny-virtual-list#25, clauderic/react-tiny-virtual-list#37) and PRs there (clauderic/react-tiny-virtual-list#30, ), hope it can be merged soon. |
When I try to use flexbox with the InfiniteTree component like this:
The div and InfiniteTree container correctly expand to height 100% in the inspector, but the InfiniteTree component only shows 5 nodes instead of filling in rows until the 100% height. So lets say we have room for 10 nodes of 30 pixels (100% height = 300px), it only show 4 nodes of 30 pixels (120px), so there is 180px of empty space.
Is there a way to solve this?
Thanks
The text was updated successfully, but these errors were encountered: