Author Topic: UIPanel inside a Scrollable View  (Read 7744 times)

Bobbin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
UIPanel inside a Scrollable View
« on: January 12, 2014, 12:51:26 PM »
I've been trying to create a scrollable view with some objects inside. The object are not that simple and they contain a scroll bar and thus a panel. When I scroll them past the fade point, the scroll bar still shows in the game view.
I think this has something to do with the panel because it's the only difference I can see between it and the things that are disappearing. But I can't remove it because my scroll bar will disappear.

Is there a way to solve this? Am I doing something wrong?

Thanks for the help.
No one ever said being a Heretic was easy.
So may we meet in Less Interesting Times.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel inside a Scrollable View
« Reply #1 on: January 12, 2014, 05:36:02 PM »
Scroll view's panel can only clip widgets that it manages. If you insert a child panel, it will take over managing the widgets, and will break clipping.

Bobbin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: UIPanel inside a Scrollable View
« Reply #2 on: January 13, 2014, 02:47:53 AM »
Is there any good way to force it to disappear or some other way to do a scroll bar?
No one ever said being a Heretic was easy.
So may we meet in Less Interesting Times.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel inside a Scrollable View
« Reply #3 on: January 13, 2014, 05:53:03 PM »
Scroll bars don't need a panel. Remove it.

Bobbin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: UIPanel inside a Scrollable View
« Reply #4 on: January 14, 2014, 02:57:13 AM »
That's what I did, eventually, thanks.

But for some reason, at one point, removing the panel made the scrollbar disappear and, at another point, it didn't. Weird.

Anyway. Thank you.
No one ever said being a Heretic was easy.
So may we meet in Less Interesting Times.