Datepicker window tries to guess a place where it can be seen.