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


Reply via email to