provide a smooth transition from one min-height to another

this change keeps the main min-height as low as possible and ensures
that we are not creating any jarring content move.