Author Topic: 3.5.5 - UILabel with ResizeHeight changes width because of ambigiousFont  (Read 1351 times)

Asse

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 70
    • View Profile
Hey,

I've updated from NGUI 3.0.6f7 and I can tell you that a lot of stuff, especially how details work have changed.

Now I was wondering why a UILabel with Overflowmode set to ResizeHeight gets its width resized and I found that in UILabel.MakePixelPerfect "mWidth = 100000" and afterwards "mWidth = Mathf.Max(w, minX)", means that it can get wider. I don't have any idea why ambigiousFont != null.

Any help on this topic?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
What does resize height overflow have to be with MakePixelPerfect? Are you calling MakePixelPerfect yourself? Why?