#1837 - Datepicker popup displays off the bottom of the screen

detects the popup off the bottom of the screen, and repositions the
popup above the parent element