flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OmPrakash Muppirala <bigosma...@gmail.com>
Subject Re: VerticalLayout
Date Thu, 26 Feb 2015 18:21:42 GMT
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 <archemedia@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
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message