Parcourir la source

Merge pull request #8872 from Popov72/fix-textblock-truncation

Fix TextBlock ellipsis
sebavan il y a 5 ans
Parent
commit
46df51b825
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      gui/src/2D/controls/textBlock.ts

+ 1 - 1
gui/src/2D/controls/textBlock.ts

@@ -430,7 +430,7 @@ export class TextBlock extends Control {
         } else {
             while (characters.length && lineWidth > width) {
                 characters.pop();
-                line = `${characters.join()}...`;
+                line = `${characters.join("")}...`;
                 lineWidth = context.measureText(line).width;
             }
         }