RE: [flexcoders] Re: Accordion question - height minus header space

2009-02-24 Thread Tracy Spratt
Yes, most all layout containers have default padding.
 
Tracy



From: flexcoders@yahoogroups.com on behalf of lanekelly5
Sent: Tue 2/24/2009 9:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Accordion question - height minus header space



I think I have it close using:

accordion.height - (accordion.numChildren * accordion_header_height)

What I'm finding though is that the calculation comes in roughly 3 
pixels too short. If I use the result of the above for my TileList 
hight (the element that I'm placing in the accordion container) I 
still get some wasted space at the bottom. For the moment I'm just 
adding in a "fudge" constant of 3 pixels to make it look right. 
Could this discrepancy be the result of padding somewhere?

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
"alinmircea_s"  
wrote:
>
> child's height or width can be specified percent wise
> width="100%"
> myComponent.percentWidth = 100;
> 
> but if you have to you have to
> 
> 
http://livedocs.adobe.com/flex/3/langref/mx/containers/Accordion.html 
<http://livedocs.adobe.com/flex/3/langref/mx/containers/Accordion.html> 
> 
> quote : headerHeight="depends on header font styles" =>
> Number(myAccordion.getStyle('headerHeight'))
>




<>

[flexcoders] Re: Accordion question - height minus header space

2009-02-24 Thread lanekelly5
I think I have it close using:

accordion.height - (accordion.numChildren * accordion_header_height)

What I'm finding though is that the calculation comes in roughly 3 
pixels too short.  If I use the result of the above for my TileList 
hight (the element that I'm placing in the accordion container) I 
still get some wasted space at the bottom.  For the moment I'm just 
adding in a "fudge" constant of 3 pixels to make it look right.  
Could this discrepancy be the result of padding somewhere?

--- In flexcoders@yahoogroups.com, "alinmircea_s"  
wrote:
>
> child's height or width can be specified percent wise
> width="100%"
> myComponent.percentWidth = 100;
> 
> but if you have to you have to
> 
> 
http://livedocs.adobe.com/flex/3/langref/mx/containers/Accordion.html
> 
> quote : headerHeight="depends on header font styles" =>
> Number(myAccordion.getStyle('headerHeight'))
>




[flexcoders] Re: Accordion question - height minus header space

2009-02-23 Thread alinmircea_s
child's height or width can be specified percent wise
width="100%"
myComponent.percentWidth = 100;

but if you have to you have to

http://livedocs.adobe.com/flex/3/langref/mx/containers/Accordion.html

quote : headerHeight="depends on header font styles" =>
Number(myAccordion.getStyle('headerHeight'))