Author Topic: Scroll View Auto Arrange widget  (Read 1252 times)

lzt120

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 68
    • View Profile
Scroll View Auto Arrange widget
« on: August 28, 2014, 02:42:31 AM »
1. How can I use the scroll view and all item inside can be auto arrange base on scroll view's width ?
2. If I need the widget inside the scroll view,  center  alight with scroll view by using UITable, how can it be done or any other way ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll View Auto Arrange widget
« Reply #1 on: August 28, 2014, 09:00:55 PM »
1. There is no such built-in component in NGUI. You'll need to code it. Knowing the width of the scroll view, reposition the children.

2. Not sure what you mean. Center alight? Center-align I assume, but what does it have to do with a table? If you want to place something in a table, that's fine. If you want it to be centered, set the scroll view's content origin.