Fix ios device rotate margin issue