fix a bug that causes incorrect index calculation when text contents are truncated.
fix a bug that causes incorrect index calculation when text contents are truncated.

null09264/FRHyperLabel,null09264/FRHyperLabel