Author Topic: 2.7.0 Label Shrink to Fit Not Working  (Read 2225 times)

Ayrik

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
2.7.0 Label Shrink to Fit Not Working
« on: September 11, 2013, 03:37:31 PM »
It seems that shrink to fit for UILabel is no longer working. I have changed nothing in my setup, is there something I need to do to get it working with the latest version? Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2.7.0 Label Shrink to Fit Not Working
« Reply #1 on: September 11, 2013, 04:46:14 PM »
I'm guessing your max lines is set to '1'. Change it back to unlimited (0).

Ayrik

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: 2.7.0 Label Shrink to Fit Not Working
« Reply #2 on: September 11, 2013, 05:22:12 PM »
Thanks, that mostly worked. I didn't notice the max height value. We need it to constrain to 1 line though, is there any way we could get that feature back in?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2.7.0 Label Shrink to Fit Not Working
« Reply #3 on: September 11, 2013, 05:25:01 PM »
You can specify width and height on labels now in addition to max lines, so just set the height so that it doesn't exceed 1 line.

Ayrik

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: 2.7.0 Label Shrink to Fit Not Working
« Reply #4 on: September 12, 2013, 11:31:56 AM »
Yeah, but when it scales down to half the normal size it will wrap and that's not the desired effect we are looking for. I like the addition, but this change breaks functionality that already existed. Now we have to change each textbox this affects, and we don't get the exact result we had before.

PS. Thanks for the awesome and quick support.