Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: hmnyari on July 03, 2013, 11:38:50 PM

Title: UILabel max line is not work
Post by: hmnyari 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
Title: Re: UILabel max line is not work
Post by: ArenMook 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.