I'm trying to set up a Scroll View + Scroll Bar combination to create a simple vertical scrolling list of objects in the center of the screen, top justified. Here's how I'm set up:
UIRoot (Fixed size)/UIPanel (no clipping, that's handled below)
-GameObject Container (no additional scripts, located at origin)
-Scroll Bar (Direction->TopToBottom)
-Background
-Foreground (taken directly from the NGUI example)
-Scroll View (pos: (0,0,0) Content Origin Top, Movement Vertical) + UIPanel (Offset 0,0 Size 300x200) <-- for clipping
-Texture01 (0,0,0) 100x100
-Texture02 (0,-110,0) 100x100
-Texture03 (0,-220,0) 100x100
-Texture04 (0,-330,0) 100x100
For simplicity I'm working with a simple list of items all at the origin. Now what's happening is that when I press play and begin the scene, my Scroll View gets adjusted. For reasons I can't figure out, The Scroll View goes from (0,0,0) to (0,46,0), and the Clipping area's offset goes from (0,0) to 0,-46), so everything is getting moved upwards. I can't figure out why, or what the significance of the 46 is. Now the scrolling does work and looks great, but I'm concerned as to why things would get moved around when I've got them set up exactly how I want in the scene itself. I've been using scroll views for a while with swiping and they all work fine, but something about attaching the scroll bar seems to be moving things around. Trying a UIGrid didn't work out because it would still get moved, and the "Reposition Now" button mentioned in the online video seems to be gone, so I couldn't get things to look correct. All I can think of is I'm missing something regarding the scroll bar values.
Thank you for the help.
-Mo