Fix minimum value when resizing