Bläddra i källkod

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

Fix TextBlock ellipsis
sebavan 5 år sedan
förälder
incheckning
46df51b825
1 ändrade filer med 1 tillägg och 1 borttagningar
  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;
             }
         }