adjust size for input date (fixes #4033)