Explorar o código

'提交图标文本位置'

zhangyu %!s(int64=5) %!d(string=hai) anos
pai
achega
e20325dd51
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      saga-web-big/src/items/SIconTextItem.ts

+ 1 - 1
saga-web-big/src/items/SIconTextItem.ts

@@ -213,7 +213,7 @@ export class SIconTextItem extends SObjectItem {
         this.textItem.text = "";
         this.textItem.font.size = 12;
         // 偏移二分之一文本高度
-        this.textItem.moveTo((this.img.width * 0.5) + 2, -(this.textItem.height * 0.5));
+        this.textItem.moveTo((this.img.width * 0.5), -(this.font.size * 1.25 * 0.5));
         this.moveable = true;
         this.selectable = true;
     }