Support => NGUI 3 Support => Topic started by: jack1219 on November 06, 2014, 02:33:36 AM
Title: why,popuplist postion error
Post by: jack1219 on November 06, 2014, 02:33:36 AM
why,popuplist postion error,
Title: Re: why,popuplist postion error
Post by: jack1219 on November 06, 2014, 03:55:09 AM
everybody can help me?
Title: Re: why,popuplist postion error
Post by: ArenMook on November 07, 2014, 01:30:09 PM
All I can suggest is check to see how it differs from the drop-down lists that come with NGUI. Pay close attention to pivot points.
Title: Re: why,popuplist postion error
Post by: jack1219 on November 08, 2014, 09:39:07 AM
i think not, i set wvga landspace(800*480) , happen error, bug i set free aspect ,this is fine, why , help me
Title: Re: why,popuplist postion error
Post by: jack1219 on November 09, 2014, 08:58:15 AM
maybe that is ngui bug????
Title: Re: why,popuplist postion error
Post by: ArenMook on November 09, 2014, 09:20:04 PM
1. What version of NGUI? 2. How to reproduce it on my end?
Help me help you.
Title: Re: why,popuplist postion error
Post by: jack1219 on November 10, 2014, 10:01:43 AM
first, add panel to uiroot, second , add popup list to panel then , try , have problem, ,
Title: Re: why,popuplist postion error
Post by: ArenMook on November 10, 2014, 09:59:56 PM
UIRoot already has a panel. Anything you add should be a child instead like so:
UIRoot - Your panel -- Popup list
Title: Re: why,popuplist postion error
Post by: tnbao91original on November 12, 2014, 09:28:21 PM
This error happen to me too, popuplist wrong position, wrong pivot and wrong size too. I just drag Popuplist from prefab tool and increase font size of label but you can see it below
(http://s10.postimg.org/km389t3rt/Untitled.png)
UIRoot have panel, AnchorBottomRight just a widget empty, Notification is popuplist
(http://s3.postimg.org/6mchc7v03/image.png)
NGUI 3.7.5, Unity 4.5
Title: Re: why,popuplist postion error
Post by: ArenMook on November 14, 2014, 04:45:57 AM
Increase font size of the label? Label font size doesn't affect font size of the popup list's content. I tried everything I could here: changing label's font size, changing popup list's font size, resizing it, moving it around... nothing breaks it on my end in 3.7.6. I need further steps to follow.
Title: Re: why,popuplist postion error
Post by: slumtrimpet on November 17, 2014, 09:55:12 AM
I'm seeing this positioning issue too actually. Can't exactly say how to duplicate it, but I've tracked it down to the offset math at the very bottom of UIPopupList.cs. Basically, the transform position is correct up until the line: t.localPosition += offset;
This used to work a few version ago so not sure what might have changed... hope this might provide some clue though.
This is what I'm seeing (in this case 'offset' ends up being (0,-50, 0) which is the exact cause of my mystery gap here):
Title: Re: why,popuplist postion error
Post by: Disastercake on November 18, 2014, 04:11:40 AM
I came here for this reason as well. I updated per your instructions to fix the Typewriter issue, which was fixed, but then all of my dropdown lists are now broken. The list appears far below the position it should be at. The longer the list, the worse it gets. They were working just fine before the update. I believe I had also missed a couple updates, so not sure which update broke it, but it must have been one in the past 2 weeks.
Title: Re: why,popuplist postion error
Post by: ArenMook on November 18, 2014, 05:32:11 AM
The constrain offset part is there is to ensure that the popup list is always on the screen. You can comment out that part if you like, but I really would like to have some consistent steps to reproduce it on my end so that I can investigate the issue properly.
Title: Re: why,popuplist postion error
Post by: slumtrimpet on November 18, 2014, 09:21:11 AM
I was able to nail down a duplicatable process I think.
Using Unity 4.6RC2 and NGUI 3.7.6, open "Example 0 - Control Widgets" and move either of the two popups near the top of the screen and see the following when activated:
Title: Re: why,popuplist postion error
Post by: slumtrimpet on November 21, 2014, 10:18:18 AM
Thanks! That fixed it for me.
Title: Re: why,popuplist postion error
Post by: sunfremont on November 26, 2014, 07:56:36 AM
I have modify code as below , But seems not really fixed. It only fix Y problem but X still have some problem when place popup list in left side or right side
Title: Re: why,popuplist postion error
Post by: ArenMook on November 26, 2014, 08:27:23 PM
Works fine here?
1. New scene. 2. Dragged in a Popup List from the prefab toolbar and placed it in the top-left corner. 3. Changed UIRoot to Constrained. 4. Hit Play, works as expected. 5. Changed the UIRoot's size, works as expected. 6. Changed the game view's size, works as expected.
Title: Re: why,popuplist postion error
Post by: sunfremont on November 27, 2014, 05:44:18 AM
Changed UIRoot to Constrained work well. I know .
So I mean in this case UIRoot : Scaling Style = ConstainedOnMobiles Content With = 1280 Content Height =720
And put Popup list in right side or left side will not working well .
I attach the package . You can import and open popup scene the see the result . (the file is over 1024k ) I have put it in www please download here
Title: Re: why,popuplist postion error
Post by: ArenMook on November 27, 2014, 08:52:20 PM
Read this sticky post: http://www.tasharen.com/forum/index.php?topic=8314.0
Title: Re: why,popuplist postion error
Post by: pstpetrov on November 28, 2014, 09:48:29 PM
I am seeing the same error.
I have a UI Root with UIRoot.ContentWidth = 1536 and UIRoot.ContentHeight.Height = 2048.
When I put the PopUp control there, the resulting popup list is showing in the middle of the screen instead of right above or below the PopUp control. Also the resulting popup is the same small size regardless of the size of the PopUp control.
When I drop the control and view it under the auto generated UI Root, it looks fine.
Title: Re: why,popuplist postion error
Post by: ArenMook on November 30, 2014, 05:44:39 AM
Whatever the issue, I am not seeing it on my end, so either it's already fixed in the Pro version, or you guys are using some older version of NGUI.
Title: Re: why,popuplist postion error
Post by: sunfremont on November 30, 2014, 09:26:17 AM
I use Unity 4.6 Free NGUI 3.7.6p2 it still have this issue . I don't have pro version to verify .
Title: Re: why,popuplist postion error
Post by: ArenMook on December 02, 2014, 11:14:09 AM