when window resize close date picker