Fix bug where datepicker is displaced by scroll