venik

Min and max width and height

These properties set the minimum and maximum size of a node. They have priority over every other property and are always respected. They can be given in points or as a percentage of the containing block’s size. By default they are all unset.

node.setMinWidth(50);
node.setMaxHeight("50%");

Note that venik, like Yoga, has no automatic minimum size: an unset min-width or min-height behaves as 0, so a flex item can shrink below its content. Set an explicit minimum to prevent that.