Prevent datetimepicker from overflowing bottom

In a bootstrap modal, if the datetimepicker is near the bottom of the screen, the picker overflows the window height and the time icon becomes unreachable. This prevents the picker from moving below the bottom of the window.