Author Topic: Caret not at correct index in text box  (Read 3205 times)

TypoStraw

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 19
    • View Profile
Caret not at correct index in text box
« on: January 21, 2014, 04:08:06 PM »
I'm using the prefab 'Control - Simple Text Box' in a completely new scene with no other scripts and am using NGUI version 3.0.9 f3.

If I write a long enough word which makes it go to the next line, the caret will be placed to the left of the character at the new line like this: http://i.imgur.com/mAssrpH.png

One would think the next character I entered (without moving the caret), would be before the D, but if I write W, this happens: http://i.imgur.com/buJJdoS.png

It skips an additional index for every line the word continues: http://i.imgur.com/unF1Gli.png (if I wrote another character, it would be inserted after the last 'ASDF', not before as one would assume).

If I press space and continue writing like normal, it will jump back to the correct index in the next line - it still bugs if I insert more characters in the multi-line word.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Caret not at correct index in text box
« Reply #1 on: January 22, 2014, 02:20:52 AM »
Curious... that's a bug. I will investigate and fix it, thanks!