2 Replies Latest reply on Oct 20, 2010 5:32 PM by -skitch-

    Tree Item Renderer with Button not resizing with label text


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


      Any ideas?