Author Topic: Scroll view widgets render problem + hotfix  (Read 3056 times)

mathiassoeholm

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 35
    • View Profile
Scroll view widgets render problem + hotfix
« 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:



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.