Author Topic: why,popuplist postion error  (Read 10588 times)

jack1219

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
why,popuplist postion error
« on: November 06, 2014, 02:33:36 AM »
why,popuplist postion error,

jack1219

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: why,popuplist postion error
« Reply #1 on: November 06, 2014, 03:55:09 AM »
everybody can help me?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: why,popuplist postion error
« Reply #2 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.

jack1219

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: why,popuplist postion error
« Reply #3 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

jack1219

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: why,popuplist postion error
« Reply #4 on: November 09, 2014, 08:58:15 AM »
maybe that is ngui bug????

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: why,popuplist postion error
« Reply #5 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.

jack1219

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: why,popuplist postion error
« Reply #6 on: November 10, 2014, 10:01:43 AM »
first, add panel to uiroot,
second , add popup list to panel
then , try , have problem, ,

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: why,popuplist postion error
« Reply #7 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

tnbao91original

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 41
    • View Profile
Re: why,popuplist postion error
« Reply #8 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



UIRoot have panel, AnchorBottomRight just a widget empty, Notification is popuplist



NGUI 3.7.5, Unity 4.5

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: why,popuplist postion error
« Reply #9 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.

slumtrimpet

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 13
    • View Profile
Re: why,popuplist postion error
« Reply #10 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):

« Last Edit: November 17, 2014, 10:24:23 AM by slumtrimpet »

Disastercake

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 87
  • www.disastercake.com
    • View Profile
    • Disastercake
Re: why,popuplist postion error
« Reply #11 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.
« Last Edit: November 18, 2014, 05:03:49 AM by Disastercake »
Creator of Soul Saga.
http://www.disastercake.com

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: why,popuplist postion error
« Reply #12 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.

slumtrimpet

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 13
    • View Profile
Re: why,popuplist postion error
« Reply #13 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:



Disastercake

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 87
  • www.disastercake.com
    • View Profile
    • Disastercake
Re: why,popuplist postion error
« Reply #14 on: November 20, 2014, 03:57:04 AM »
Just popping in to see what the status of this bug is.  It's pretty much breaking my game.  Have you been able to reproduce it, ArenMook?
Creator of Soul Saga.
http://www.disastercake.com