Jidongchen 3 vuotta sitten
vanhempi
commit
dd6f63519b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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);
         }