I am getting inconsistent results.
The first time I run this, calling UITable.Reposition() immediately after creating my gameObjects and adding them as children of the UITable it looks correct. If destroy these items and I disable the screen and then go through the same process again then the UITable will now be off in the top left corner. This is shown in the below image. If I manually select "Reposition Now" in the editor then everything will move to its expected position. I know that UITable.Reposition() is being called in code as I have a print statement on that function in the NGUI codebase and so I'm left wondering why this function sometimes works and why it sometimes doesn't and if there are any timing issues or other things I am unaware of that can prevent its correct operation?
I'm hoping you can provide some clarity on the best practices of how and when UITable.Reposition() should be called to get the correct results when populating a UITable with dynamically created GameObjects. In addition if there are additional functions that should be called in a certain order to get the correct effect (e.g.. UIDraggablePanel.ResetPosition()) I would appreciate clarity on what other functions need to be called.
I am assuming from the documentation of UIDraggablePanel.ResetPosition() that the transform position of the clipping panel should be set such that it is the same position as the desired top left corner of the UITable?
