A TabNavigator container creates and manages a set of tabs, which you use to navigate among its children. The children of a TabNavigator container are other containers. The TabNavigator container creates one tab for each child. When the user selects a tab, the TabNavigator container displays the associated child, as the following figure shows:
The TabNavigator container is a child class of the ViewStack container and inherits much of its functionality. A TabNavigator container has the following default properties:
| Property | Default |
|---|---|
|
Preferred size |
The width and height of the first active child plus the tabs, or the width required to display all the tabs at their minimum size (30 pixels), whichever is larger. The default tab height is determined by the font, style, and skin applied to the TabNavigator container. If you set an explicit height using the |
|
Container resizing rules |
TabNavigator containers are only sized once to fit the size of the first child container by default. They do not resize when you navigate to other child containers by default. To force TabNavigator containers to resize when you navigate to a different child container, set the You can ensure that all of your child containers fit in the TabNavigator container with the expected layout by setting the |
|
Child sizing rules |
Children are sized to their preferred size. The child is clipped if it is larger than the TabNavigator container. If the child is smaller than the TabNavigator container, it is aligned to the upper-left corner of the TabNavigator container. |
|
Default margins |
Top, bottom, left, right = 0 pixels. |
|
Background color |
White. |
Version 1.5
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/15/flex_docs_en/00000395.htm