flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shigeru Nakagaki (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34033) single-line TextInput keeps a newline when TextInput.text = "abc\n".
Date Thu, 09 Jan 2014 09:35:51 GMT
Shigeru Nakagaki created FLEX-34033:
---------------------------------------

             Summary: single-line TextInput keeps a newline when TextInput.text = "abc\n".
                 Key: FLEX-34033
                 URL: https://issues.apache.org/jira/browse/FLEX-34033
             Project: Apache Flex
          Issue Type: Bug
          Components: Spark: TextInput
         Environment: Windows 7
            Reporter: Shigeru Nakagaki


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>




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message