stop date select button bar from going off screen