Author Topic: Panel doesn't clip a custom widget by demand  (Read 1801 times)

tnbao91original

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 41
    • View Profile
Panel doesn't clip a custom widget by demand
« on: October 06, 2014, 05:12:32 AM »
I have to implement a scroll view which have items can be pressed. When they are pressed, a widget child of Item scrollview will be appear but they are cutted by panel scroll view. I just wanna clip parent item scroll view not a widget child of item scroll view. May u help me ?

You can see more detail in this image: orange circle is item scroll view which have label as child, when I press orange cirlce, label will show but they are clipped by panel

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Panel doesn't clip a custom widget by demand
« Reply #1 on: October 06, 2014, 10:33:00 AM »
Your image link is broken.

When panel is set to clip, it will clip everything underneath it. All widgets belonging to it will get clipped.

If you don't want something to get clipped, place it on a different panel.

tnbao91original

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 41
    • View Profile
Re: Panel doesn't clip a custom widget by demand
« Reply #2 on: October 06, 2014, 08:59:01 PM »
This image is fine, I can see it from my PC. My question is how to make panel not clip the child of item scroll view, just clip item scroll view not all of child. Or you have any idea for my situation please help :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Panel doesn't clip a custom widget by demand
« Reply #3 on: October 07, 2014, 10:15:44 AM »
As I mentioned in the previous post, if you don't want something clipped, it must be outside the scroll view.

UIPanel depth 0 (background)
UIPanel depth 1 (scroll view)
UIPanel depth 2 (on top of scroll view)