fixed small window resize bug on iphones