void HandleArchOrder1()
{
if (this.childrenRenderOrder == ChildrenRenderOrder.Arch)
{
float mid = this.scrollPane.posY + this.viewHeight / 2;
float minDist = int.MaxValue, dist;
int apexIndex = 0;
int cnt = this.numChildren;
for (int i = 0; i < cnt; i++)
{
GObject obj = GetChildAt(i);
if (!foldInvisibleItems || obj.visible)
{
dist = Mathf.Abs(mid - obj.y - obj.height / 2);
if (dist < minDist)
{
minDist = dist;
apexIndex = i;
}
}
}
this.apexIndex = apexIndex;
}
}