main height to min height