Set grid width/height to 1 if given width/height is less than 1