| Package | feathers.layout |
| Class | public class HorizontalLayoutData |
| Inheritance | HorizontalLayoutData EventDispatcher Object |
| Implements | ILayoutData |
| Product Version : | Feathers 1.3.0 |
HorizontalLayout 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. | HorizontalLayoutData | ||
| percentWidth : Number
The width of the layout object, as a percentage of the container's
width. | HorizontalLayoutData | ||
| Method | Defined By | ||
|---|---|---|---|
HorizontalLayoutData(percentWidth:Number, percentHeight:Number)
Constructor. | HorizontalLayoutData | ||
![]() | addEventListener(type:String, listener:Function):void Registers an event listener at a certain object. | EventDispatcher | |
![]() | dispatchEvent(event:Event):void Dispatches an event to all objects that have registered listeners for its type. | EventDispatcher | |
![]() | dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void Dispatches an event with the given parameters to all objects that have registered
listeners for the given type. | EventDispatcher | |
![]() | hasEventListener(type:String, listener:Function = null):Boolean If called with one argument, figures out if there are any listeners registered for
the given event type. | EventDispatcher | |
![]() | removeEventListener(type:String, listener:Function):void Removes an event listener from the object. | EventDispatcher | |
![]() | removeEventListeners(type:String = null):void Removes all event listeners with a certain type, or all of them if type is null. | EventDispatcher | |
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| HorizontalLayoutData | ||||
| percentHeight | property |
percentHeight:NumberThe height of the layout object, as a percentage of the container's height.
A percentage may be specified in the range from 0
to 100. If the value is set to 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
VerticalAlign.JUSTIFY.
The default value is NaN.
public function get percentHeight():Number public function set percentHeight(value:Number):voidSee also
| percentWidth | property |
percentWidth:NumberThe 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.
A percentage may be specified in the range from 0
to 100. If the value is set to NaN, this
property is ignored. It will also be ignored when the
useVirtualLayout property of the
HorizontalLayout is set to false.
The default value is NaN.
public function get percentWidth():Number public function set percentWidth(value:Number):void| HorizontalLayoutData | () | Constructor |
public function HorizontalLayoutData(percentWidth:Number, percentHeight:Number)Constructor.
ParameterspercentWidth:Number (default = NaN) | |
percentHeight:Number (default = NaN) |
| change | Event |