set min_width and min_height