Prevent date picker form getting cut off