Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
The CSSContainerUtils class is a utility class that computes the values
containers often need to know like border widths and padding styles.
public static function getBorderAndPaddingMetrics(object:Object):Rectangle
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Combine padding and border. Often used in non-containers.
Parameters
| object:Object — The object with style values.
|
Returns | Rectangle — A Rectangle representing the padding and border on each of the four sides.
|
public static function getBorderMetrics(object:Object, quick:Boolean = false):Rectangle
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Compute the width/thickness of the four border edges.
Parameters
| object:Object — The object with style values.
|
|
| quick:Boolean (default = false ) — True to assume all four edges have the same widths.
|
Returns | Rectangle — A Rectangle representing the four sides.
|
public static function getPaddingMetrics(object:Object):Rectangle
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.0 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
Compute the width/thickness of the four padding sides.
Parameters
| object:Object — The object with style values.
|
Returns | Rectangle — A Rectangle representing the padding on each of the four sides.
|
Mon Sep 5 2016, 07:19 AM -07:00