Name

resizelayout

Synopsis

LZX: resizelayout
JavaScript: resizelayout
Type: Class
Access: public
Topic: Components.Layouts
Declared in: lps/components/utils/layouts/resizelayout.lzx

Superclass Chain

node (LzNode) » layout (LzLayout) » resizelayout

Known Subclasses

Details

Properties (2)

axis
<attribute name="axis" type="string" value="y" />
public var axis : String;
The axis in which this layout operates either 'x' or 'y'.
spacing
<attribute name="spacing" value="0" />
public var spacing;
A pixel amount to use between each view in the layout

Methods (4)

hold()
<method name="hold" args="subview" />
public function hold(subview : LzView);
holding a subview keeps it from being resized when the parent view resizes
release()
<method name="release" args="subview" />
public function release(subview : LzView);
releasing a subview allows the layout to resize it when the parent view stretches
setAxis()
<method name="setAxis" args="a" />
public function setAxis(a : string);
setter for the axis attribute. The default value is 'y'
update()
<method name="update" args="e" />
public function update(e : deprecated);
This method is usually called automatically when any of the views controlled by the layout change their size in the layout axis, or their visibility. However it can be called directly to force the layout to update

LZX Synopsis

<class name="resizelayout" extends=" LzLayout ">
  <attribute name=" axis " type="string" value="y" />
  <attribute name=" spacing " value="0" />
  <method name=" hold " args="subview" />
  <method name=" release " args="subview" />
  <method name=" setAxis " args="a" />
  <method name=" update " args="e" />
</class>

JavaScript Synopsis

public resizelayout extends  LzLayout  {
  public var axis  : String;
  public var spacing ;
  prototype public function hold (subview : LzView);
  prototype public function release (subview : LzView);
  prototype public function setAxis (a : string);
  prototype public function update (e : deprecated);
}