Author Topic: Aligning different size children in a UITable correctly.  (Read 1420 times)

Erbacher

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 17
    • View Profile
Aligning different size children in a UITable correctly.
« on: April 11, 2014, 01:07:22 PM »
Hi guys,

I am creating a small Menu and I am adding small children into body of the menu using a ScrollView and a UITable:



However as you can see my alignment is off. I would like to be able to have all the child widgets aligned to the left hand side and not centered like they are.

I have tried using both a UIGrid and UITable for this, and for some reason unable to see a option which can help me get this to look how I want.

Can someone please show me where I am going wrong?.. Thanks :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Aligning different size children in a UITable correctly.
« Reply #1 on: April 12, 2014, 04:27:29 AM »
Change the widget's pivot to be on the left-hand side instead of in the center.

Erbacher

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Aligning different size children in a UITable correctly.
« Reply #2 on: April 12, 2014, 06:56:06 AM »
I seem to miss the really obvious things :(.

Thanks a lot ArneMook for the fast reply.