There is an assert when using the TreeView.
TreeViewContentComponent::paint calls TreeView::handleAsyncUpdate()
but when it needs recalculating setSize is called on TreeViewContentComponent
Problem is there is an assert telling
// It’s a very bad idea to try to resize a component during its paint() method!
jassert (! (flags.isInsidePaintCall && wasResized));