Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: DJVDJV on January 13, 2016, 06:52:56 AM
-
Hellos,
Many of my popuplaist "opens" over wrong popuplist (look attachment where "Resolutions"-options open over "Quality PopUpList" )
My popuplist is just copy from "prefab toolbar" "simple popup list".. only graphics are changed. So no custom code. What might cause this?
-
Did further exploration. Place of popping window can wary different places in different resolutions
-
Even further examing:
Changed UIPopUpList.cs row 1089 to:
Vector3 offset = Vector3.zero;
Seems to fix this.. but what might cause this?
-
That code ensures that the popup is visible on the screen and that it doesn't get clipped. I'm not sure why it's appearing in the wrong place for you. Perhaps a wrong reference somewhere?
-
That code ensures that the popup is visible on the screen and that it doesn't get clipped. I'm not sure why it's appearing in the wrong place for you. Perhaps a wrong reference somewhere?
That is strange because I have changed almost nothing at all. Just UISprite and backGround & highlight textures in UIPopupList. Also got anchor "Advanced" left & right for control and bottom & top for upper label.
And this happens every places where I use UIPopupList. Not just that one "options"-menu.
-
The UIPopupList script uses a UIWidget attached to the same game object for the purpose of figuring out its dimensions. If you happen to have a large invisible widget there, its bottom side will be used by UIPopupList, causing the popup to appear below where you would want it. Check the widget's dimensions.