Author Topic: I meet a bug with UIScrollBar  (Read 3324 times)

woshihuo12

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
I meet a bug with UIScrollBar
« on: September 17, 2014, 11:24:25 PM »
bagPanel (panel uiscrollview)
  |-------bagContents ( UITable)
                |----------------bagItem
                |----------------bagItem
                |----------------bagItem

i set bagPanel's uiscrollview's Scroll Bars show condition to "OnlyIfNeeded"...
and i add some bagItems use  StartCoroutine(InitBagItems());
public IEnumerator InitBagItems()
{       
...
                AddRecordItem();
...
}

i notice that i have many items and the scroll bar shows, but i can't drag the scroll bar, because it's boxcollider is disabled..
so can i have some helps???
thanks................

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: I meet a bug with UIScrollBar
« Reply #1 on: September 18, 2014, 03:28:23 PM »
Seems to work fine in the quest log example. Did you ever notify the scroll view that the content changed? panel.UpdateScrollbars(true)