This is happening because the tree window has position: 'absolute', and is having its top style set by reading the offsetHeight of the current of the ref I have given the div holding the top items (down to undo buttons). On first render, though, ref.current is still undefined. Sometimes it automatically rerenders immediately, producing the expected result. @McTano any ideas on how to deal with this?
This is happening because the tree window has position: 'absolute', and is having its top style set by reading the offsetHeight of the current of the ref I have given the div holding the top items (down to undo buttons). On first render, though, ref.current is still undefined. Sometimes it automatically rerenders immediately, producing the expected result. @McTano any ideas on how to deal with this?