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