Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - FDMP

Pages: [1]
1
NGUI 3 Documentation / Re: UIGrid
« on: July 31, 2014, 06:33:26 PM »
Hello I'm using nested UI Grid to create a Scroll View that shows multiple (pages) matrices of 3x3 elements.
Here is the Hierarchy:

ScrollView
--Grid                      //Main grid
----Grid                   //First page
--------Element1
--------Element2
--------Element3
--------Element4
--------Element5
--------Element6
--------Element7
--------Element8
--------Element9
----Grid                   //Second page
--------Element10
--------Element12
--------Element13
--------Element14
--------Element15
--------Element16
--------Element17
--------Element18
--------Element19

I can successfully generate pages. I parent the the elements to the page grid and then in the page grid, call:
  1. UIGrid.Reposition();
So far so good. The problem lies when y call UIGrid.Reposition() in the main grid, I also call:
  1. ScrollView.ResetPosition();
but the pages are stack one on top of another. I noticed that if I call ScrollView.ResetPosition() and UIGrid.Reposition() in the frame after I fill the elements, it works well.

It's a bug or I'm missing something? I'm using NGUI 3.6.8

Thanks.

Pages: [1]