Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Sahkan on May 12, 2014, 04:46:16 AM

Title: How do i get multiple lines in " Control - Simple Input Field " example ?
Post by: Sahkan on May 12, 2014, 04:46:16 AM
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 ?
Title: Re: How do i get multiple lines in " Control - Simple Input Field " example ?
Post by: Sahkan on May 12, 2014, 05:24:20 AM
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 .