Author Topic: Underline tags in UILabel causing bugs with styling  (Read 3624 times)

Camille

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 4
    • View Profile
Underline tags in UILabel causing bugs with styling
« on: August 06, 2014, 03:01:01 AM »
Hi ArenMook

I have found a possible bug with UILabel.

To replicate please do the following:

1. Start with new project and import latest NGUI package.
2. Add a UILabel (position if necessary)
3. Paste the following text into the text field:

  1. [b][u]Increase Size of Cat[/u][/b]
  2.  
  3. [0070C0](For future cat access)[FFFFFF]
  4.  
  5. Remove cat from door.
  6.  
  7. Mark the existing cat access on the right of the door

4. Note how the text is not appearing as it should (in this example, the text is coloured in the wrong place as seen in attached image).
5. Remove the underline tags -- I suspect it is only the opening underline tag that causes this error however.
6. Note that the text is now displaying correctly.

If you could please have a look soon that would be appreciated.

Cheers

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Underline tags in UILabel causing bugs with styling
« Reply #1 on: August 07, 2014, 12:37:08 AM »
That's very strange... I'll look into this, thank you.

chrish

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: Underline tags in UILabel causing bugs with styling
« Reply #2 on: August 11, 2014, 01:00:56 AM »
I am seeing the same bug in my project, is there any resolution to this yet?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Underline tags in UILabel causing bugs with styling
« Reply #3 on: August 12, 2014, 12:08:36 AM »
Already fixed in 3.6.9.