Sorry my title should be " How to adjust size of a parent to fit its chidren?"
The new UIRect Anchor is powerful, but it can only adjust child positions and size according to its parent container, cannot vice versa. as Now, I want to adjust the parent size to tightly fit all its children and the parent is actually a scroll-able row item ..(think of a facebook wall posts every post have a different height, depending on the post length)..If I anchor the parent top to the child top, the parent and all children will move upward forever...infinite loop happen. I guess all children position some how is actually depend on its parents..
Basically, It just something like: parent scrollable row Height = child title height + child paragraph height. (title anchor to the row top, paragraph anchor to the title bottom)...So cannot anchor scollable row bottom back to child paragraph bottom...it will cause infinite loop...
In addition.I tried to use the new anchor system, but once I upgrade my ngui, all my child sprite alpha value inherited from parents sprite. Which is not the case in the previous version.
Let's say I have a half transparent background sprite with alpha 0.5, which contains a few labels, like title and paragraph. Then All those label will become half transparent as well......That's why I don't want to upgrade to the latest version.....