source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/widget/GapAccordion.as@ 1227

Last change on this file since 1227 was 1227, checked in by George Lilly, 13 years ago

initial load of EDIS 1.0

File size: 572 bytes
Line 
1/* GapAccordion.as
2
3In Flex 2 there is a bug that causes the verticalGap to not be included in the
4measurement calculations for the child containers in the accordion. This
5adds the verticalGap back in.
6
7See: http://adamflater.blogspot.com/2007/08/accordion-bug.html
8
9 */
10
11package gov.va.med.edp.widget
12{
13 import mx.containers.Accordion;
14
15 public class GapAccordion extends Accordion
16 {
17
18 override protected function measure():void
19 {
20 super.measure();
21 this.measuredHeight += (this.getStyle("verticalGap") * this.numChildren);
22 }
23
24 }
25}
Note: See TracBrowser for help on using the repository browser.