Skip to content

Commit 3c75872

Browse files
committed
Fix word wrap issue
1 parent a1d4417 commit 3c75872

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/text/static/Text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ var Text = new Class({
534534
}
535535

536536
result += words[j] + ' ';
537-
spaceLeft = wordWrapWidth - wordWidth;
537+
spaceLeft = wordWrapWidth - wordWidthWithSpace;
538538
}
539539
else
540540
{

0 commit comments

Comments
 (0)