Author Topic: How do I build a correctly aligning vertical scrollview table?  (Read 11648 times)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How do I build a correctly aligning vertical scrollview table?
« Reply #15 on: April 29, 2014, 02:11:28 PM »
The table does indeed have to be moved into the correct position. The Table script simply positions its children. It doesn't do anything to the scroll view. The scroll view content's position is separate.

"seems to start positioning its child objects at its origin." <-- not sure what you mean here. In your screenshot you don't seem to be showing gizmos at their pivot. You seem to have it set to center. Table's content always extends toward the right and below of the table's object.

Tiktaalik

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 39
    • View Profile
Re: How do I build a correctly aligning vertical scrollview table?
« Reply #16 on: April 29, 2014, 04:31:58 PM »
Ok I understand now. The UITable is independent of UIScrollView.

I became confused I think because UIScrollView's ContentOrigin option was being assigned to TopLeft and it seemed odd to me to not see my content not appear in the top left of the UIScrollView.

To make my tables make the most visual sense I'll manually set the UITable position to be the top left of the UIScrollView (-150,150) then set the child UIWidgets to be pivoting on the top left and set their transforms to 0,0.

pawankumar113

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: How do I build a correctly aligning vertical scrollview table?
« Reply #17 on: November 04, 2014, 04:57:03 AM »
Right click on Table then again alignment your table for positioning.
Here attaching image.