Hello folks,
I have a simple window, with a vertical scroll list defined as the standard UIPanel, UIScrollbar, UIGrid, and sub-items that I add at runtime via NGUITools.AddChild. The children have UIDragPanelContents attached to the topmost object, which also has the collider attached.
Two behaviors that I'm trying to remedy:
1. The list populates and builds properly. However, it starts mid-point (center point) of the scrollable area. Is there a script method I should be calling to get these items to flow correctly top-down in the panel area rather than have them flow middle-down? [edit: the first time you touch the scroll bar with the mouse it properly repositions the content and re-sizes the scrollbar. I'm sure I'm just missing a simple method call to make this happen at the end of list creations.]
2. Clipped items (in both hard and soft clipping) are still clickable. I noticed this because items flowing off the bottom of the window, while invisible, are still "over" the "OK" button... and trying to click the OK button results in selecting a list item if the list extends out of the clipped area and over the button area. Shouldn't the collider for list items also be disabled as they exit the clipped area?