fixes #4386 fix datepicker is not completely visible. I wanted to fix this in JS but unfortunately the beforeShow event of the datepicker is not working and I did not find any other workaround. So fixing it this way