Author Topic: UIInput / UILabel: Bug if not left-aligned  (Read 5381 times)

Martin Schultz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 37
    • View Profile
    • Decane
UIInput / UILabel: Bug if not left-aligned
« on: February 21, 2013, 05:03:40 AM »
Hi. I've been implementing an input field for entering the email address in the game. Now, the label was centered and if I enter more characters than the colliders width, I would have assumed the label starts to scroll. This happens only if the label is left aligned. If it is centered like in my case, the label text starts to "flip" around (shown completely off-set) once I enter more text than the collider's width. Setting to left aligned like in the input example of NGUI works, so I assume this is a bug.

Repro is simple: Take the built-in Input example scene and change the label to centered alignment and start typing. You see how the text flips to the right side.

- Martin

getluky

  • Guest
Re: UIInput / UILabel: Bug if not left-aligned
« Reply #1 on: February 21, 2013, 01:45:31 PM »
See http://www.tasharen.com/forum/index.php?topic=3167.0

You'll have to implement it yourself. Or you could just cap the maxchars in the field...