fix timing on the adjustForWindowWidth method