
Define the layout constraints 129
2. In the Flex Properties view, ensure that the Layout category of properties is expanded.
The Layout category contains options for setting anchors.
3. Define the layout constraints for the TextInput control by selecting the left and right
anchor check boxes in the view, and then specifying 90 as the distance to maintain from
the left window edge and 60 as the distance to maintain from the right edge, as follows:
The two check boxes anchor the TextInput control to the left and right edges of the
window. The numbers associated with the text boxes specify how far from the edges (in
pixels) to anchor the controls.
The left anchor is necessary to fix the control in place so that it stretches or compresses
when the user resizes the application horizontally. Without the left anchor to hold it in
place, the control would slide to the left or right.
Kommentare zu diesen Handbüchern