Author Topic: ScrollBar issue  (Read 4695 times)

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
ScrollBar issue
« on: December 31, 2013, 04:50:17 AM »
Hello,

I have an issue with a list using scrollbar.
If I start the scene with GameObjects active everything works fine, but if everything is disabled at start, and I activate them using NGUITools.SetActive, the scrollbar is dark and not working.

Any idea of what's happening?

Here's a small video that shows the issue.
http://www.youtube.com/watch?v=SCs6_k9Gv9g

PS : The issue is only happening if my UIScrollView has scrollbars as "OnlyIfNeeded".
PS 2 : Even if after adding items to the scrollview via script, I call : UpdateScrollbars the scrollbars remain dark, but if I drag the list the scrollbar will move (but I can't drag the scrollbar itself).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: ScrollBar issue
« Reply #1 on: December 31, 2013, 07:17:50 AM »
In which version are you seeing this, and can you create a simple repro case for me?

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: ScrollBar issue
« Reply #2 on: December 31, 2013, 07:48:41 AM »
Latest version on the Asset Store and I'll try for the repo :)

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: ScrollBar issue
« Reply #3 on: December 31, 2013, 10:07:12 AM »
I successfully reproduced the issue in a repo (using the new latest version 3.0.8f3) :D
In the repo, if you hit play, the scrollbars will be gray and not working (can't grab them). But they move if you move the list itself.
I made a small video at the root of the zip showing 2 issues.

PS: Don't look at the bad code/graphics/etc... I did the repo as fast as possible.
PS2: Please tell me when you have downloaded the repo so I can remove it from dropbox. Thx.
« Last Edit: December 31, 2013, 11:47:13 AM by ArenMook »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: ScrollBar issue
« Reply #4 on: December 31, 2013, 12:33:41 PM »
You posted NGUI's code in public. Smooth.

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: ScrollBar issue
« Reply #5 on: December 31, 2013, 10:12:35 PM »
Omg sorry.
Didn't even realize :/

Baroni

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: ScrollBar issue
« Reply #6 on: January 03, 2014, 06:41:52 AM »
I am experiencing this issue too (in 3.0.8f3, but it seems it isn't fixed in f4 by looking at the change log), let me know if you need another repro.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: ScrollBar issue
« Reply #7 on: January 03, 2014, 11:16:11 AM »
Sure, just don't post it here like some people. >_>

The smaller, the better. Created using NGUI's assets works best.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: ScrollBar issue
« Reply #8 on: January 04, 2014, 11:02:13 AM »
As a note btw -- I wasn't able to repro this on Windows at all, nah0y. What video shows and what I observed are two different things. In both cases the content shows up in the correct place, and the scroll bar is not grayed out. The only thing wrong I saw with your demo was that you set your camera to clear only depth, so nothing was clearing the screen properly.

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: ScrollBar issue
« Reply #9 on: January 06, 2014, 04:16:16 AM »
Sure, just don't post it here like some people. >_>

Once again, I'm sorry. We all make mistakes.

As a note btw -- I wasn't able to repro this on Windows at all, nah0y. What video shows and what I observed are two different things. In both cases the content shows up in the correct place, and the scroll bar is not grayed out. The only thing wrong I saw with your demo was that you set your camera to clear only depth, so nothing was clearing the screen properly.

And now I can reproduce it either. Seems like turning off the computer solved the issue or something like that...
Do you have the same issue Baroni?

Baroni

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: ScrollBar issue
« Reply #10 on: January 06, 2014, 03:18:42 PM »
Actually no, it was my fault. My draggable items exceeded their clipped panel by a few pixels, what caused the scrollbar to stay active. Sorry for the false alarm and thanks for looking into this.