Sizing components

Flex provides several ways for controlling the size of components. You can do the following tasks:

  • Let Flex automatically determine component sizes.

  • Specify pixel sizes.

  • Specify component size as a percentage of the parent container.

  • Combine layout and sizing by specifying a constraint-based layout.

Several Flex properties affect the size of components. As a rule, you use only a few properties for most applications, but a more complete understanding of these properties can help you understand the underlying Flex sizing mechanism and how Flex sizing properties interrelate. For information on the rules that Flex applies to determine the sizes of components based on the properties, see Determining and controlling component sizes.

For information on constraint-based layout, see Using constraints to control component layout.