fix time input positioning when resizing window