Fixed the calculation of content Inset and contentOffset when user switches between different kinds of keyboards, such as Pingyin