constrain

Clamps a size to these constraints.

Return

the constrained size.

Parameters

size

the candidate size.