Yes, most all layout containers have default padding.
 
Tracy

________________________________

From: [email protected] on behalf of lanekelly5
Sent: Tue 2/24/2009 9:44 AM
To: [email protected]
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 [email protected] <mailto:flexcoders%40yahoogroups.com> , 
"alinmircea_s" <alinmirce...@...> 
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'))
>




<<winmail.dat>>

Reply via email to