Keep input boxes from overflowing viewport