0 Replies Latest reply on Mar 18, 2007 12:43 PM by mdirolf

    Accordion resizeToContent

      Hi i'm trying to make an accordion using the resizeToContent property so that each time you click on a header you will see an accordion that is the right size to fit just the contents underneath that header. The problem I'm having is that when this property is set I cannot figure out how to make the animations smooth. The resizing occurs in one big jump at the end of the transition, rather than smoothly throughout the transition. I'm new to flex so I'm sure this is something simple, but is there a good way to do this? any help at all would be great!

      Here is my code:

      <mx:Accordion id="categories" resizeToContent="true" width="100%">
      <mx:VBox label="Cat1">
      <mx:Button label="A"/>

      <mx:VBox label="Cat2">
      <mx:Button label="A"/>
      <mx:Button label="B"/>
      <mx:Button label="C"/>