Assert in TreeView



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));



oh no! Foiled by my own assertion!

Ok, I’ll need to figure out a way around that one…