Merge pull request #16172 from cezheng/fix/label_text_formatter_right_alignment

fix label text formatter right alignment
This commit is contained in:
minggo 2016-07-21 15:21:12 +08:00 committed by GitHub
commit 35cea378a9
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ bool Label::multilineTextWrap(std::function<int(const std::u16string&, int, int)
nextLetterX += _horizontalKernings[letterIndex + 1];
nextLetterX += letterDef.xAdvance * _bmfontScale + _additionalKerning;
tokenRight = letterPosition.x + letterDef.width * _bmfontScale;
tokenRight = nextLetterX / contentScaleFactor;
}
nextChangeSize = true;