소스 검색

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 {
         } else {
             while (characters.length && lineWidth > width) {
             while (characters.length && lineWidth > width) {
                 characters.pop();
                 characters.pop();
-                line = `${characters.join()}...`;
+                line = `${characters.join("")}...`;
                 lineWidth = context.measureText(line).width;
                 lineWidth = context.measureText(line).width;
             }
             }
         }
         }