Adjust margin for window resize.