Author Topic: Move a scroll view by code  (Read 2711 times)

xito

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 13
    • View Profile
Move a scroll view by code
« on: May 12, 2014, 10:38:17 AM »
Hello:

I have a UIgrid with a clipping panel.

I am making a kind of tutorial and I want to move the grid to the left by code.

For this, I am using UIScrollView.MoveRelative

The problem is that, after this, when I close the window and open it again, the grid looks broken.

So the question is:

Which is the best way to move a Clipping panel with a grid by code?

If it is MoveRelative, I am probably doing something else wrong.

Thank you very much.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Move a scroll view by code
« Reply #1 on: May 12, 2014, 05:20:57 PM »
I'd advise moving it via SpringPanel.Begin instead. You can specify which position to go to, and the panel will center on it.