1
NGUI 3 Support / Re: UIPopupList popup isn't sizing and positioning correctly
« on: December 11, 2014, 12:41:21 AM »
Sorry for the late response - was on vacation and internet stopped after that.
So for a quick repro case, open up "Example 0 - Control Widgets.unity" and pick one of the popup lists. When run without any changes, "Control - Colored Popup List" looks like this:

The width of the dropdown box matches that of the original button. This is the desired outcome.
I made a font size change from 20 to 15 in the UIPopupList component here:

And this is what it looks like as a result:

dropdown box width no longer matches that of the original button.
The width discrepancy between the Dropdown box and the original button only seems to happen when the font size specified isn't the same as the font's original size. Removing "dynScale" in the line of code I mentioned in my first post seems to fix it, but I'd prefer it if I didn't have to modify NGUI code (I like to keep my 3rd party libraries untouched). Is this a bug, or intended behaviour?
Thanks!
So for a quick repro case, open up "Example 0 - Control Widgets.unity" and pick one of the popup lists. When run without any changes, "Control - Colored Popup List" looks like this:

The width of the dropdown box matches that of the original button. This is the desired outcome.
I made a font size change from 20 to 15 in the UIPopupList component here:

And this is what it looks like as a result:

dropdown box width no longer matches that of the original button.
The width discrepancy between the Dropdown box and the original button only seems to happen when the font size specified isn't the same as the font's original size. Removing "dynScale" in the line of code I mentioned in my first post seems to fix it, but I'd prefer it if I didn't have to modify NGUI code (I like to keep my 3rd party libraries untouched). Is this a bug, or intended behaviour?
Thanks!