I have a class that extends TreeItemRenderer. I put a Button control in my item renderer and set the label on the button, which I thought would autosize the button to fit that label. That not being the case, I was wondering how and/or where I can size my button in the chain of draw events (ie commitProperties, measure, updateDisplayList).
I've tried everything within all three draw events from button.width = button.explicitWidth or button.width = button.measuredWidth (which works sometimes until new item renderers are exposed).
If you added a control to an extension of TreeItemRenderer, then you need to
call setActualSize on it in updateDisplayList, probably by checking its
You, sir, are amazing. Thanks for this!