mirror of https://github.com/axmolengine/axmol.git
Merge pull request #16172 from cezheng/fix/label_text_formatter_right_alignment
fix label text formatter right alignment
This commit is contained in:
commit
35cea378a9
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue