Author Topic: Small Bug in UIPopupList  (Read 4549 times)

Zyxil

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 4
  • Posts: 37
    • View Profile
Small Bug in UIPopupList
« on: October 22, 2016, 04:27:09 PM »
If your popup list is on a panel that has a changed sorting order, the created panel will appear on sorting order 0.

I added this just after panel creation at ~903:

  1.                 mChild.GetComponent<UIPanel>().sortingOrder = NGUITools.FindInParents<UIPanel>(gameObject).sortingOrder;
  2.  

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Small Bug in UIPopupList
« Reply #1 on: October 24, 2016, 06:55:37 AM »
It can just be
  1. panel.sortingOrder = mPanel.sortingOrder;
but thanks for pointing this out.