public void SetLayoutOrientation(TableViewLayoutOrientation layoutOrientation)
 {
     if (layoutOrientation == TableViewLayoutOrientation.Horizontal)
     {
         Container.anchorMin = new Vector2(0f, 0f);
         Container.anchorMax = new Vector2(0f, 1f);
         Container.pivot     = new Vector2(0.0f, 0.5f);
     }
     else
     {
         Container.anchorMin = new Vector2(0f, 1f);
         Container.anchorMax = new Vector2(1f, 1f);
         Container.pivot     = new Vector2(0.5f, 1.0f);
     }
 }
Esempio n. 2
0
        public void SetLayoutOrientation(TableViewLayoutOrientation layoutOrientation)
        {
            this.layoutOrientation = layoutOrientation;

            if (this.layoutOrientation == TableViewLayoutOrientation.Horizontal)
            {
                scrollRect.horizontal = true;
                scrollRect.vertical   = false;
            }
            else
            {
                scrollRect.horizontal = false;
                scrollRect.vertical   = true;
            }
        }
 public void SetLayoutOrientation(TableViewLayoutOrientation layoutOrientation)
 {
     this.layoutOrientation = layoutOrientation;
 }
Esempio n. 4
0
 public TableViewLayout(TableViewLayoutOrientation orientation)
 {
     Orientation = orientation;
 }