瀏覽代碼

Fix TextBlock ellipsis

Popov72 5 年之前
父節點
當前提交
65b3f791e1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
             }
         }