Implements
- PUXI.ILayoutManager
Methods
-
Zeros the measured dimensions.
-
Clears the left, top, right, bottom, and center widget lists.
-
Ensures all widgets in the list measured their dimensions below the region width & height. Widgets that are too large are remeasured in the those limits (using
MeasureMode.AT_MOST).This will handle widgets that have "FILL_PARENT" width or height.
Name Type Description listArray.<PUXI.Widget> measuredRegionWidthnumber measuredRegionHeightnumber -
Indexes the list of left, top, right, bottom, and center widget lists.
-
This measures the list of widgets given the constraints. The max width and height amongst the children is returned.
Name Type Description listArray.<PUXI.Widget> maxWidthnumber maxHeightnumber widthModePUXI.MeasureMode heightModePUXI.MeasureMode Returns:
Type Description Array.<number> - [width, height, widthFixedLowerBound, heightFixedLowerBound] - the max. width and height amongst children. Also, the minimum required width/height for the region (as defined in layout-options).
-
Name Type Description maxWidthnumber maxHeightnumber widthModePUXI.MeasureMode heightModePUXI.MeasureMode