Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: mathiassoeholm on February 11, 2014, 04:08:38 AM

Title: Scroll view widgets render problem + hotfix
Post by: mathiassoeholm on February 11, 2014, 04:08:38 AM
Hello!

I have a scroll view, nested under another gameobject.
This gameobject is a popup which is set active and then moved every once in a while, and since the scroll view is a child it will move with the popup.

The problem is that whenever I set the parent active in a new position, the widgets in the scroll view will be offset from their actual bounds.
Here's a screenshot displaying the problem:

(http://i.imgur.com/UwhASAn.png)

The widgets will jump back to being rendered in the right place as soon as I interact with the scroll view.
I fixed the problem with these two statements directly after moving the parent.

  1. _scrollView.MoveRelative(Vector3.up);
  2. _scrollView.MoveRelative(Vector3.down);
  3.