Click a button to turn that fitting method on, or click it again to turn auto-fit off entirely.
While auto-fit is on, the height field in Box position, size & padding is locked, since After Effects is calculating it for you. Turn auto-fit off to set height manually again.