Jidongchen 3 年之前
父节点
当前提交
dd6f63519b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Assets/GameMain/Scripts/UI/UICustom.cs

+ 1 - 1
Assets/GameMain/Scripts/UI/UICustom.cs

@@ -563,7 +563,7 @@ namespace MetaClient
             
             float _x = _obj.GetComponent<RectTransform>().offsetMin.x;
             int _childNum = _obj.transform.childCount;
-            float _y = _childNum > 8 ? -240 * (_childNum - 8) : 0;
+            float _y = _childNum > 7 ? -240 * (_childNum - 7) : 0;
             _obj.GetComponent<RectTransform>().offsetMax = new Vector2(_x, 0);
             _obj.GetComponent<RectTransform>().offsetMin = new Vector2(_x, _y);
         }