Author Topic: Change dropdown box width?  (Read 2779 times)

Martin Schultz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 37
    • View Profile
    • Decane
Change dropdown box width?
« 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


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Change dropdown box width?
« Reply #1 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.