auto move datepicker if not fully visible