Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: webik150 on April 22, 2015, 08:47:38 AM

Title: Popup-list's "Drop-down list" is offset
Post by: webik150 on April 22, 2015, 08:47:38 AM
Hey. I've encountered a problem today. I trying to create graphics settings, so I put the Popup-list prefab in my scene. It worked completely normally. Then I changed it to how I wanted it, and suddenly this happens:
(http://i.imgur.com/l7d0STE.jpg)


Any idea on what I've done wrong?  (I've even tried doing what I did above once more)
Title: Re: Popup-list's "Drop-down list" is offset
Post by: webik150 on April 22, 2015, 09:08:57 AM
Update: I've figured out that when I move the popup-list to the middle of my screen, it gets normal....
Title: Re: Popup-list's "Drop-down list" is offset
Post by: ArenMook on April 22, 2015, 02:28:53 PM
I actually redid the code earlier today that was repositioning popups in order to ensure that they are visible on the screen. If you have Pro access, you can test it now, if not -- you will see the changes in the next update.
Title: Re: Popup-list's "Drop-down list" is offset
Post by: webik150 on April 23, 2015, 05:59:11 AM
Ok. Thank you.
Title: Re: Popup-list's "Drop-down list" is offset
Post by: Samuraisa on July 12, 2015, 11:30:15 PM
The bug is still there.
Commenting "+ offset" part in UIPopupList.cs on line 1063 (and excess declaration of offset on previous line) do the thing for me.
Title: Re: Popup-list's "Drop-down list" is offset
Post by: ArenMook on July 14, 2015, 11:29:52 PM
Try simply replacing line 1062 with
  1. Vector3 offset = mPanel.hasClipping ? Vector3.zero : mPanel.CalculateConstrainOffset(min, max);
My guess is you have a clipped panel there, which is why you are running into issues.
Title: Re: Popup-list's "Drop-down list" is offset
Post by: Samuraisa on July 15, 2015, 04:06:47 AM
Nope, doesn't help. Visual offset still here.

There is my panel for this elements:

(http://i.imgur.com/78wI4SJ.png)
Title: Re: Popup-list's "Drop-down list" is offset
Post by: ArenMook on July 16, 2015, 10:43:39 AM
Then you need to tell me how to reproduce it in a clean project because I am not getting this issue on my end.