Height required.. how to enable variable height
rchancey opened this issue · 2 comments
rchancey commented
I reported a bug recently and I resolved it by setting the height.. heck even in all the examples it is given a fixed height :-(.
The issue is I need the height of the container to grow with the tree. Is there a way I can set the height, which is required for the tree to even show, but also have it grow?
rt-bear commented
I have the same problem,have you solved it?
SilverFoxA commented
The code here containerStyle = { height: '100%', ...containerStyle }; could have been a bit more flexible.
You can use the style property on the sortable widget to give a dynamic height to your list.
<SortableTree style={{ height: this.getHeight() }} />