Explorar el Código

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

Fix TextBlock ellipsis
sebavan hace 5 años
padre
commit
46df51b825
Se han modificado 1 ficheros con 1 adiciones y 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;
             }
         }