[flexcoders] Custom Components - updateDisplay results in ghost children drawn

2008-07-15 Thread polestar11
Hi I've been working with custom components only just noticed a strange re-drawing issue where I get ghost versions of the children in my component appearing. I've only just noticed this since I set the child's position relative to unscaledWidth, which changes and so allows me to see N

Re: [flexcoders] Custom Components - updateDisplay results in ghost children drawn

2008-07-15 Thread Josh McDonald
Components don't set explicitWidth and explicitHeight on themselves, they're (optionally) set by the container, and actual sizing is set by the container through setActualSize(). Override measure(), and set measuredWidth and measuredHeight to match your label, and your problems may go away. Also