Minimize the amount of free space by wrapping the children, subject to the incoming layout constraints.