Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Martin Schultz on August 29, 2014, 05:08:38 AM

Title: Change dropdown box width?
Post by: Martin Schultz on August 29, 2014, 05:08:38 AM
I'm looking to change the width of the dropdown box when it rolls out, but can't find it anywhere. It's a standard control from the NGUI examples changed to my own graphics. But I seem to miss where I can change the width. Any hints?

Thanks!
Martin

(https://dl.dropboxusercontent.com/u/17435297/nguidropdownlength.jpg)
Title: Re: Change dropdown box width?
Post by: ArenMook on August 30, 2014, 08:58:24 AM
The width is determined by whatever it's attached to or the content, whichever is larger. So by default if the widget the UIPopupList is attached to has a width of 100, the drop-down list will too. If the content labels are longer though, then the drop-down list's background will resize accordingly.