events update scroll bar position on window resize