Author Topic: UIGrid Reposition issue.  (Read 1424 times)

cbothra

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 13
    • View Profile
UIGrid Reposition issue.
« on: May 08, 2014, 09:19:51 AM »
Hi please help me out I am running into a serious problem. Here's my scenario:

I have a tabbed panel using same grid in the scroller. I've also turned the "DisableDragIfFits" to ON. In my first tab the scroller has more elements so scrolling can be done here but in the second tab I have a limited number of elements so there should be no scrolling.

Basically the problem is that when I switch from one tab to another then the scrolling effect of the first tab is reflected on the another. At first I thought that its because of the single scroller being used in both the tabs but for that I am using Grid.Reposition() on each toggle.

Any help would be highly appreciated. Please drag me out of this problem.

cbothra

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 13
    • View Profile
Re: UIGrid Reposition issue.
« Reply #1 on: May 09, 2014, 12:37:16 AM »
Finally after a lot of debugging got it resolved.

Solution: Make sure to call ResetPosition() of the DraggablePanel component in the scroller.