Author Topic: UILabel max line is not work  (Read 3801 times)

hmnyari

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 29
    • View Profile
UILabel max line is not work
« on: July 03, 2013, 11:38:50 PM »
using 2.6.3
 
--setting--
shrink to fit ON
max width xxx
max line 1

max line 1 is not work
when my text become long , line over 2

in previous version(2.5.x) max line 0 = max line 1 and works perfectly
in 2.6.3 , i need to set all my UILabel's max line 0 to 1
also it's not work...

is this bug? is there any plan to fix this in next version?

ps.
so I found solution.
copy and paste UILabel.cs of 2.5.x and delete OnUpdate() inside UILabel.cs

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel max line is not work
« Reply #1 on: July 04, 2013, 08:24:01 AM »
That part is most likely going to change in the next version. I don't like how it's set up right now. Basically it works right now by treating the max lines as "max height" instead. So if your label is using a size 24 font, that's going to be 24 pixels tall.