fix resize bug on iphone