change the way that minimum height and width are computed