BUG: fix datepicker calendar position so it does not go off the screen