Author Topic: PopupList is underneath scrollView's items.  (Read 5785 times)

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
PopupList is underneath scrollView's items.
« on: April 23, 2014, 07:00:55 AM »
I've got a popupList that has a dropDownList which is displayed over a horizontal scrollList.  The problem is that no matter what the depth settings I use on the popupList, the dropDownList is always underneath the scrollList's items.  How should the popupList be setup?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: PopupList is underneath scrollView's items.
« Reply #1 on: April 23, 2014, 07:41:39 AM »
Scroll list? Assuming you mean scroll view, that implies a different panel. Popup list is drawn using the same panel the widget is on, so the scroll view will always be on top (assuming its panel's depth is higher). If you want the popup list to be on top, place it on a separate panel that has a depth higher than your scroll view.

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
Re: PopupList is underneath scrollView's items.
« Reply #2 on: April 23, 2014, 09:59:28 AM »
Cool, that did the trick.

Evil-Dog

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: PopupList is underneath scrollView's items.
« Reply #3 on: June 25, 2014, 03:26:03 PM »
It didn't for me.
I've got this hierarchy for my UI panel, it's got popup lists at the top for search filters and a scrollview below that displays the results.  My popup list items are always under the ScrollView's items.  What am I missing?

SearchPanel (depth 26)
    FilterPanel (26)
        PopupList (27)
    Panel (1)
        ScrollView (21)
            Grid

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: PopupList is underneath scrollView's items.
« Reply #4 on: June 26, 2014, 10:42:55 AM »
Panels should never share depth, and depth is not cumulative. If I understand your diagram correctly, you have two panels using depth 26, and then a child of depth 26 is using depth 1. This is very odd.

Evil-Dog

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: PopupList is underneath scrollView's items.
« Reply #5 on: June 26, 2014, 11:19:12 AM »
I'm sorry those are just the names of my UIWidgets, which are just containters to facilitate the manipulation of the interface, they're not actual UIPanels.
That being said, it made me realized that from what you said so far, I did need 2 UIPanels to differentiate the dropdowns' depth and the scrollview's depth. Now it's working thanks!