Rev | Line | |
---|
[1240] | 1 | /* GapAccordion.as
|
---|
| 2 |
|
---|
| 3 | In Flex 2 there is a bug that causes the verticalGap to not be included in the
|
---|
| 4 | measurement calculations for the child containers in the accordion. This
|
---|
| 5 | adds the verticalGap back in.
|
---|
| 6 |
|
---|
| 7 | See: http://adamflater.blogspot.com/2007/08/accordion-bug.html
|
---|
| 8 |
|
---|
| 9 | */
|
---|
| 10 |
|
---|
| 11 | package 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.