log and window resize