Fixed first time scroll adjust

Scroll adjustment now works for initial window resize.