HorizontalListJoint:grow
Returns the growth factor on this list element. The default growth factor is 0.
Usage
horizontal_list_joint:grow()
Returns
| Name | Type | Description |
|---|---|---|
factor | number | Growth factor. |
Examples
local list = crystal.HorizontalList:new();
local image = list:add_child(crystal.Image:new());
image:set_grow(2);
print(image:grow()); -- Prints "2"