Sets the maximum size allocated to the child.
It is the width if the latch is horizontal, or the height if it is vertical.
a latch
the maximum size