source: EDIS/tags/ed/tracking-ui-core/src/main/flex/gov/va/med/edp/widget/GapAccordion.as@ 1240

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

new version from the VA

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.