Author Topic: Ellipsis not working correctly in last versions  (Read 2323 times)

Fabien

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Ellipsis not working correctly in last versions
« on: May 02, 2017, 10:40:33 AM »
Hello,

In the last NGUI version 3.11.3, the ellipsis is not working correctly, here you can see in the screenshot below a simple example with one label forced to one line. But the "..." is added and we can see two lines instead.

It was working correctly in 3.11.1.

Thanks in advance for your answer.

https://owncloud.livejourney.org/s/JjaqeTh6gWCDTo2

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Ellipsis not working correctly in last versions
« Reply #1 on: May 04, 2017, 04:53:52 PM »
Fix one thing, break another... Argh! Simple fix, fortunately. Line 1350 of NGUIText.cs:
  1.                         // Doesn't fit?
  2.                         if (x > maxWidth)
change to:
  1.                         // Doesn't fit?
  2.                         if (x > ew)

Fabien

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Ellipsis not working correctly in last versions
« Reply #2 on: May 05, 2017, 03:01:55 AM »
Thank you for your answer, does it mean it will be fixed in next version or I'll have to patch it every time ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Ellipsis not working correctly in last versions
« Reply #3 on: May 13, 2017, 11:11:49 AM »
I fix things on my end as I post such replies, so yes it will be there in the next version.