Another alternative, if you have to use a Canvas and don't want to subclass, is to use constraints (top, bottom, left, right) on the children.
-TH --- In [email protected], "markflex2007" <[EMAIL PROTECTED]> wrote: > > Hi,Mike > > Please let me know this in detail. > > I can extends Canvas and create a new class (like samrtcavas). > > I confuse how to use the class in mxml and how to set left/right paddings > > Thanks for your help > > Mark > > > > --- In [email protected], "Michael Schmalle" > teoti.graphix@ wrote: > > > > A hack that can be done if you really want Canvas is; > > Create a subclass of Canvas and override the usePadding property. > > > > override mx_internal get usePadding():Boolean > > { > > return true; > > } > > > > This will turn the padding back on when the > > layout calculates viewMetricsAndPadding. > > > > Mike > > >

