With no height of its own the embedded terminal starts at 24 rows and can't shrink. In a shorter box the program was told 24 rows and drew the bottom ones out of sight, losing vim's status and command lines. Let it shrink, so its size is always the box's.