In `ContextBox`, I calculate the minimum height based on the minimum width (L72), so I think that ensuring that the height does not dip below the min. height also prevents the width from going below the min. width.