fixed #2094: Position error when contentsize is set with a very short string.
Merge pull request #900 from Wu-Hao/master

fixed #2094: Position error when contentsize is set with a very short string.