Is there a way to set the scale of a component without triggering
invalidateSize() ?

My initial effort to create a "ScaleToFit" component involved setting
scaleX and scaleY in updateDisplayList. But that results in some
recursion. Perhaps this is the wrong place to set the scale.

I notice that SWFLoader uses a DisplayObject as a content holder, but
my attempts to cast "this" to DisplayObject before setting the
property didn't help - the UIComponent version of "set scaleX" is
still invoked.


On Fri, May 23, 2008 at 7:37 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote:
> I'm looking to find or create a  component which would scale (not
> resize) its contents smaller if they were larger than this component's
> bounds, and center them if they're smaller.  I could imagine
> extensions to support "expand to fit" as well, but that's not needed
> currently.
>
> The "contents" can be a single child if that helps, or the full child
> list of a container. I've done a bit of custom component development,
> but would appreciate any suggestions/pointers for this scenario.
>
> Thanks in advance.
>

Reply via email to