Packagefeathers.layout
Classpublic class HorizontalLayoutData
InheritanceHorizontalLayoutData Inheritance starling.events.EventDispatcher
Implements ILayoutData

Extra, optional data used by an HorizontalLayout instance to position and size a display object.

See also

HorizontalLayout
ILayoutDisplayObject


Public Properties
 PropertyDefined By
  percentHeight : Number
The height of the layout object, as a percentage of the container's height.
HorizontalLayoutData
  percentWidth : Number
The width of the layout object, as a percentage of the container's width.
HorizontalLayoutData
Public Methods
 MethodDefined By
  
HorizontalLayoutData(percentWidth:Number, percentHeight:Number)
Constructor.
HorizontalLayoutData
Events
 Event Summary Defined By
  HorizontalLayoutData
Property Detail
percentHeightproperty
percentHeight:Number

The height of the layout object, as a percentage of the container's height.

If the value is NaN, this property is ignored.

Performance tip: If all items in your layout will have 100% height, it's better to set the verticalAlign property of the HorizontalLayout to HorizontalLayout.VERTICAL_ALIGN_JUSTIFY.

The default value is NaN.


Implementation
    public function get percentHeight():Number
    public function set percentHeight(value:Number):void

See also

feathers.layout.HorizontalLayout.VERTICAL_ALIGN_JUSTIFY
percentWidthproperty 
percentWidth:Number

The width of the layout object, as a percentage of the container's width. The container will calculate the sum of all of its children with explicit pixel widths, and then the remaining space will be distributed to children with percent widths.

The percentWidth property is ignored when its value is NaN or when the useVirtualLayout property of the HorizontalLayout is set to false.

The default value is NaN.


Implementation
    public function get percentWidth():Number
    public function set percentWidth(value:Number):void
Constructor Detail
HorizontalLayoutData()Constructor
public function HorizontalLayoutData(percentWidth:Number, percentHeight:Number)

Constructor.

Parameters
percentWidth:Number (default = NaN)
 
percentHeight:Number (default = NaN)
Event Detail
change Event
Event Object Type: starling.events.Event