input field reacts to window resize