Author Topic: UIPopupList questions  (Read 1840 times)

Markov

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
    • View Profile
UIPopupList questions
« on: November 09, 2013, 11:59:57 PM »
Hi.
1st question - how can I set popupList background width?
from this:


to this:


and the 2nd - how can I fix this?

it occurs after localization in a few languages
« Last Edit: November 10, 2013, 12:06:20 AM by Markov »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPopupList questions
« Reply #1 on: November 10, 2013, 07:05:06 AM »
That's actually a bug. You can fix it by opening line 660 of UIPopupList.cs:
  1. x = Mathf.Max(x, labelHeight);
Replace it with:
  1. x = Mathf.Max(x, lbl.printedSize.x);