1 Reply Latest reply on Mar 24, 2010 2:33 PM by GordonSmith

    Sking for TextInput problem

    franto kormanak Level 1

      Hey,

       

      im trying to have custom skin for spark TextInput and inside I'm using RichEditableText as follows

       

      <s:RichEditableText id="textDisplay"
                              multiline="{hostComponent.multiline}"
                              lineBreak="toFit"
                              color="{hostComponent.textColor}"
                              fontFamily="{hostComponent.fontFamily}"
                              fontSize="{hostComponent.fontSize}"
                              focusedTextSelectionColor="0xddf1f8"
                              left="6" right="1" top="4" bottom="1"
                              kerning="off"
                              heightInLines="{hostComponent.lines}"
                              >
          </s:RichEditableText>

       

       

      problem is that when i start typing it's never go to 2nd line only if I have press Enter key. What's wrong with it?

       

      Also I want to ask how work widthInChars and heightInLines parameters. I was thinking that if I have set widthInChars to 10, it will set maximum 10 chars per line, but it doesnt work like that...

       

      Im using SDK 14403