패키지 | mx.core |
클래스 | public final class ContainerLayout |
상속 | ContainerLayout Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
layout
property of container classes.
관련 API 요소
상수 | 정의 주체 | ||
---|---|---|---|
ABSOLUTE : String = "absolute" [정적]
Use absolute layout for the contents of this container. | ContainerLayout | ||
HORIZONTAL : String = "horizontal" [정적]
Use horizontal layout for the contents of this container. | ContainerLayout | ||
VERTICAL : String = "vertical" [정적]
Use vertical layout for the contents of this container. | ContainerLayout |
ABSOLUTE | 상수 |
public static const ABSOLUTE:String = "absolute"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Use absolute layout for the contents of this container. You are responsible for explicitly specifying the position of each child.
The easiest way to do this is to specify
the x
, y
, width
,
and height
of each child.
The width
and height
can be specified
as a percentage value in MXML.
(In ActionScript you have to set the percentWidth
and percentHeight
properties.)
If you don't specify the width
or
percentWidth
for a child,
then its measuredWidth
, as automatically determined
by its measure()
method, will be used.
The same applies for its height.
As an alternative way of doing layout, you can use the anchor
styles left
, top
, right
,
bottom
, horizontalCenter
,
and verticalCenter
on children to anchor them to
the sides or the center of a container.
When you use absolute layout, the container's
paddingLeft
, paddingTop
,
paddingRight
, paddingBottom
,
horizontalGap
, verticalGap
,
horizontalAlign
, andverticalAlign
styles are ignored.
HORIZONTAL | 상수 |
public static const HORIZONTAL:String = "horizontal"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Use horizontal layout for the contents of this container. The container will automatically place its children in a single row.
If you don't specify the width
or
percentWidth
for a child,
then its measuredWidth
, as automatically determined
by its measure()
method, is used.
The same applies for its height.
You can control the spacing between children
with the horizontalGap
style,
and the alignment of the children
with the verticalAlign
style.
The paddingLeft
, paddingTop
,
paddingRight
, and paddingBottom
styles
control the space between the border of the container
and the children.
VERTICAL | 상수 |
public static const VERTICAL:String = "vertical"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Use vertical layout for the contents of this container. The container will automatically place its children in a single column.
If you don't specify the width
or
percentWidth
for a child,
then its measuredWidth
, as automatically determined
by its measure()
method, is used.
The same applies for its height.
You can control the spacing between children
with the verticalGap
style,
and the alignment of the children
with the horizontalAlign
style.
The paddingLeft
, paddingTop
,
paddingRight
, and paddingBottom
styles
control the space between the border of the container
and the children.
Tue Jun 12 2018, 03:17 PM Z