Datepicker appears above component used to open it if there is not enough space at the bottom of the screen for it to be fully visible.