future 1 年之前
父节点
当前提交
cb022d9d7e
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      assets/script/tools.ts

+ 4 - 0
assets/script/tools.ts

@@ -84,6 +84,10 @@ export class tools  {
         }
         if(string.length==2) {
             lab_component.lineHeight = 60
+        } else if(string.length==3) {
+            lab_component.lineHeight = 38
+        } else {
+            lab_component.lineHeight = 30
         }
         lab_component.string = string
     }