After your Canvas gets resized, try yourCanvasName.validateNow()
nope, that didn't do it, any other ideas?
1 person found this helpful
You'll need to subclass. Canvas is a container of IUIComponents and only determines its size for its child IUIComponents and never checks the graphics layer (which, by the way, will be obscured by any background in a border).
Canvas is pretty heavy as a container for graphics. I would recommend subclassing UIComponent instead of Canvas. Either way, you'll need to override measure() and return measuredWidth/Height determined from $width/$height.
Flex SDK Developer
Adobe Systems Inc.
Ok I'm almost there. Now I want to set the measuredWidth/Height but I cannot access the $width since it is in the mx_internal namespace. Is there another way to measure the graphics dimensions?