Explorar o código

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

Fix TextBlock ellipsis
sebavan %!s(int64=5) %!d(string=hai) anos
pai
achega
46df51b825
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
             }
         }