Author Topic: UILabel shrink to fit bug  (Read 1577 times)

theRocknRoll

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
UILabel shrink to fit bug
« on: August 27, 2013, 09:14:48 AM »
I'm trying to use "shrink to fit" option in UILabel. When number of letters in "id" or "placeholder" fields became more than could be placed in current MaxWidth, scale begins to change. That's what I expect from this component, but when I continue to type more and more letters, suddenly UILabel adds new line! "MaxLines" is 2, but if I continue to type, UILabel will add 3rd and 4th line. It's lokks not very nice, when I localizing my text in some button and it takes more lines, than I expected. Please fix it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel shrink to fit bug
« Reply #1 on: August 27, 2013, 12:20:31 PM »
Max lines parameter is currently converted to "max height" calculated as max lines * font size. It will be changed in a future version.