[flexcoders] changing an Hbox

2008-02-17 Thread [EMAIL PROTECTED]
I am creating HBoxes with actionscript, based on XML content.
I want to give them bottom margins.

How do I do that?




Re: [flexcoders] changing an Hbox

2008-02-17 Thread Scott Melby
Have you tried the paddingBottom style 
?  
You would set this programmatically using the setStyle() method.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



[EMAIL PROTECTED] wrote:


I am creating HBoxes with actionscript, based on XML content.
I want to give them bottom margins.

How do I do that?

 


Re: [flexcoders] changing an Hbox

2008-02-17 Thread [EMAIL PROTECTED]
Yes I've tried that. It doesn't work.
gridItem = new HBox(  );
gridItem.setStyle("paddingBottom", 20);

Scott Melby wrote:
>
> Have you tried the paddingBottom style 
> ?
>   
> You would set this programmatically using the setStyle() method.
>
> hth
> Scott
>
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com
>
>
> [EMAIL PROTECTED] wrote:
>>
>> I am creating HBoxes with actionscript, based on XML content.
>> I want to give them bottom margins.
>>
>> How do I do that?
>>
>  



Re: [flexcoders] changing an Hbox

2008-02-17 Thread Scott Melby
Hmmm... well that is how I always do it.  To be clear, what that should 
set is the amount of space inside the HBox (at the bootm) that will be 
left empty (below any children that are added in there).


Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



[EMAIL PROTECTED] wrote:


Yes I've tried that. It doesn't work.
gridItem = new HBox( );
gridItem.setStyle("paddingBottom", 20);

Scott Melby wrote:
>
> Have you tried the paddingBottom style
> 
>? 


> You would set this programmatically using the setStyle() method.
>
> hth
> Scott
>
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com 
>
>
> [EMAIL PROTECTED]  wrote:
>>
>> I am creating HBoxes with actionscript, based on XML content.
>> I want to give them bottom margins.
>>
>> How do I do that?
>>
>