VerticalListJoint:set_shrink

Sets the shrink factor on this list element.

Usage

vertical_list_joint:set_shrink(factor)

Arguments

Name Type Description
factor number Shrink factor.

Examples

local list = crystal.VerticalList:new();
local image = list:add_child(crystal.Image:new());
image:set_shrink(2);
print(image:shrink()); -- Prints "2"

This site uses Just the Docs, a documentation theme for Jekyll.