Package | feathers.layout |
Class | public class VerticalLayoutData |
Inheritance | VerticalLayoutData ![]() |
Implements | ILayoutData |
VerticalLayout
instance to
position and size a display object.
See also
Property | Defined By | ||
---|---|---|---|
percentHeight : Number
The height of the layout object, as a percentage of the container's
height. | VerticalLayoutData | ||
percentWidth : Number
The width of the layout object, as a percentage of the container's
width. | VerticalLayoutData |
Method | Defined By | ||
---|---|---|---|
VerticalLayoutData(percentWidth:Number, percentHeight:Number)
Constructor. | VerticalLayoutData |
Event | Summary | Defined By | ||
---|---|---|---|---|
VerticalLayoutData |
percentHeight | property |
percentHeight:Number
The height of the layout object, as a percentage of the container's height. The container will calculate the sum of all of its children with explicit pixel heights, and then the remaining space will be distributed to children with percent heights.
The percentHeight
property is ignored when its value
is NaN
or when the useVirtualLayout
property of the VerticalLayout
is set to
false
.
The default value is NaN
.
public function get percentHeight():Number
public function set percentHeight(value:Number):void
percentWidth | property |
percentWidth:Number
The width of the layout object, as a percentage of the container's width.
If the value is NaN
, this property is ignored.
Performance tip: If all items in your layout will have 100% width,
it's better to set the horizontalAlign
property of the
VerticalLayout
to
VerticalLayout.HORIZONTAL_ALIGN_JUSTIFY
.
The default value is NaN
.
public function get percentWidth():Number
public function set percentWidth(value:Number):void
See also
VerticalLayoutData | () | Constructor |
public function VerticalLayoutData(percentWidth:Number, percentHeight:Number)
Constructor.
ParameterspercentWidth:Number (default = NaN )
| |
percentHeight:Number (default = NaN )
|
change | Event |
starling.events.Event