Browse Source

Fix TextBlock ellipsis

Popov72 5 năm trước cách đây
mục cha
commit
65b3f791e1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
             }
         }