Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34033

single-line TextInput keeps a newline when TextInput.text = "abc\n".

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Spark: TextInput
    • None
    • Windows 7

    Description

      Is this right?

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">

      <s:layout>
      <s:VerticalLayout />
      </s:layout>

      <fx:Script>
      <![CDATA[

      protected function button1_clickHandler(event:MouseEvent):void

      { txt.text = "abc\n"; }

      ]]>
      </fx:Script>

      <s:TextInput id="txt"/>
      <s:Button label="set"
      click="button1_clickHandler(event)"/>

      </s:WindowedApplication>

      Attachments

        1. TextInput_keeps_newline.png
          10 kB
          Shigeru Nakagaki
        2. src.zip
          5 kB
          Shigeru Nakagaki

        Activity

          People

            Unassigned Unassigned
            shigeru Shigeru Nakagaki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: