Author Topic: How do i get multiple lines in " Control - Simple Input Field " example ?  (Read 3132 times)

Sahkan

  • Jr. Member
  • **
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 74
    • View Profile
I'v wrote in the " Max lines " box 30 .
But it shows the lines properly only after i deselect the input area, when i type it's like long endless line, how do i fix it ?

Sahkan

  • Jr. Member
  • **
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 74
    • View Profile
Ok i'v got it, in the UIInput there is this line :

  1. if (label.multiLine && !ctrl && label.overflowMethod != UILabel.Overflow.ClampContent && validation == Validation.None)
  2.                                 {
  3.                                         Insert("\n");
  4.                                 }

So i had to change the overflow to other than ClampContent .