Fix behavior where header would jump around at non-optimal screen sizes.