Browse Source

'提交图标文本位置'

zhangyu 5 years ago
parent
commit
e20325dd51
1 changed files with 1 additions and 1 deletions
  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;
     }