I have a UIScrollView on a panel, set to Vertical movement. The scroll view has one child, which is a (draggable) UIGrid containing a dynamic list of buttons. The UIGrid and all its children (the buttons) have UIDragScrollView components on them. Vertical dragging/scrolling is working fine.
When I make dynamic changes to the button list (i.e. adding new buttons at runtime via code), I call Reposition() on the grid. However, sometimes the particular button that I want to show as "selected" (it has an extra glow around it) is outside the bounds of the clipping panel. How can I ensure that a particular button is showing after Reposition()?
Again, here's my object setup:
-panel/scrollview
-- grid
--- button
--- button
--- button
--- button
--- (etc.)