public virtual void SetLayoutVertical()
 {
     if (ScrollLayoutGroup != null && ScrollLayoutGroup.IsVertical())
     {
         ApplyElementSize();
     }
 }
 protected void ApplyElementSize()
 {
     CancelInvoke("ApplyElementSize");
     if (ScrollLayoutGroup != null && LayoutElementIndex >= 0 && _isVisible)
     {
         ScrollLayoutGroup.SetCachedElementSize(LayoutElementIndex, ScrollLayoutGroup.CalculateElementSize(transform, ScrollLayoutGroup.IsVertical()));
     }
 }