Good idea. I think the mx components supported something like this. I don't see a reason to not add this to the layout classes.
Thanks, Om On Thu, Feb 26, 2015 at 4:07 AM, Dany Dhondt <archeme...@mac.com> wrote: > Hi all, > > I keep on typing this code: > > <s:layout> > <s:VerticalLayout paddingTop="5" paddingRight="5" paddingBottom="5" > paddingLeft="5"/> > </s:layout> > > so I made my own layout class VerticalLayoutPadded which basically does: > > public function set padding(value:int):void > > { > > _padding = value; > > this.paddingBottom = _padding; > > this.paddingLeft = _padding; > > this.paddingRight = _padding; > > this.paddingTop = _padding; > > } > > > shouldn't we add this to the VerticalLayout and HorizontalLayout classes? > It would be very convenient IMO. > > > Dany > > > >