I have a number of UI widgets and panels that are inactive by default. I've built the UI to the iphone5's aspect ratio and have UIStretch components on a number of the backgrounds and widgets to size them appropriately for iPad, etc.
The problem is, the first time these panels are made active and displayed, you can see them pop to their stretched positions.
I thought I could be clever and go in UIStretch.cs and add a PreStretch() function that calls Awake(), Start() and Update() once, but that doesn't work. I think the first frame the NGUI render mesh is the original layout, and the next frame has the properly stretched layout.
Does anyone have a solution for this? Thanks in advance.