In case anyone else runs into the same problem, here is how you can
setup the event handler to respond to application resizes:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%"
height="100%" resize="onResize();">

...

private function onResize():void {
     optionsAccordion.height = details.height = this.height / 5;
}


If you want more information about the event, you can also import the
ResizeEvent and pass it to onResize, e.g.

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%"
height="100%" resize="onResize(event);">

...
import mx.events.ResizeEvent;
private function onResize(e:ResizeEvent):void {
     optionsAccordion.height = details.height = this.height / 5;
}

Hope this helps.

If anyone knows of a simpler solution, I'd still be interested to know!

Reply via email to