3 Replies Latest reply on Dec 6, 2007 6:55 AM by soup_pot

    Expand containers downwards to fit content

    soup_pot
      I hope this isn't a stupid question... I'm having trouble managing the overall layout of my app so that containers expand vertically to fit content/children rather than the containers remaining a fixed size and squishing content and/or displaying scroll bars (which is what is happening now). My app is essentially constructed as follows:

      <App layout="vertical" verticalScrollPolicy="auto">
      <HBox width="100%" height="100%">
      <VBox width="85%" height="100%">
      <TabNavigator />
      <HBox>
      <TabNavigator />
      <TabNavigator />
      </HBox>
      </VBox>
      <VBox width="15% height="100%">
      <HBox />
      <Tile />
      <VBox />
      </VBox>
      </HBox>
      </App>

      Within each of the TabNavigators there is a Canvas wrapping a set of <mx:TextArea /> controls. What I would like to do is make it so that when additional children are added to the Canvas, the entire TabNavigator expands downward to fit the content so that the browser's vertical scroll bar appears. Is this possible?