datepicker flips up if it won't fit on page