update fit after window resize