Constrain size and position when a configure requests resize.