Author Topic: Vertical Alignment with Shrink to Fit on localized UILabels in 2.7.0  (Read 1619 times)

msgilligan

  • Guest
I'm using NGUI 2.7.0 and I've made some minor modifications in order to switch fonts along with languages (based upon suggestions on this site)

I want to use shrink to fit so that UILabel text that is too long can be reduced to fit in buttons, etc that were designed for English.  I have shrinkToFit working, but the problem is that the text needs to be vertically centered.  We need to ship "yesterday" so I don't want to upgrade to 3.0.

What can I do?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Vertical Alignment with Shrink to Fit on localized UILabels in 2.7.0
« Reply #1 on: October 24, 2013, 09:18:49 PM »
Just look at that part of the code from 3.0 and see if you can adapt it, that would be my suggestion.

msgilligan

  • Guest
Re: Vertical Alignment with Shrink to Fit on localized UILabels in 2.7.0
« Reply #2 on: October 24, 2013, 09:20:35 PM »
I think I've got a solution (rather limited but works for my use case) figured out and working.  (I just got access to the Pro version today, btw)

Hopefully we'll be upgrading to 3.0 after this release of our app.

Thanks,

Sean

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Vertical Alignment with Shrink to Fit on localized UILabels in 2.7.0
« Reply #3 on: October 24, 2013, 09:21:37 PM »
Ah yes, you guys had the misfortune in requesting access just as I boarded the plane home. Sorry about the delay.