react-virtualized-tree
react-virtualized-tree copied to clipboard
Overlapping text
Hi, I found there is a problem when you toggle expanded text.
The bug occurs only when expanded text is larger than the parent container and is need to add a scrollbar to the container.
Follow these steps to reproduce the bug:
- Visit section Nodes With Auto Measure in the demo page (please see https://diogofcunha.github.io/react-virtualized-tree/#/examples/node-measure)
- Expand Argentina and all its children
- Expand Brazil and all its children
- Collapse Argentina
- Collapse and expand Brazil
After this, you should see the following bug.
What I tried and works were setting NodeRenderer
CSS attribute with values max-width: calc(100% - 17px)
. 17px is width of scrollbar. But I feel bad about this because I think it is a little bit hacky and would be a nice check whether is need to apply this style. I mean it would be great not to apply this style every time.
Is there some chance to do it?