You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Shigeru Nakagaki (JIRA)" <ji...@apache.org> on 2014/08/14 07:35:12 UTC

[jira] [Commented] (FLEX-34033) single-line TextInput keeps a newline when TextInput.text = "abc\n".

    [ https://issues.apache.org/jira/browse/FLEX-34033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14096594#comment-14096594 ] 

Shigeru Nakagaki commented on FLEX-34033:
-----------------------------------------

I hope this issue will be fixed at next release.

> 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
>         Attachments: TextInput_keeps_newline.png, src.zip
>
>
> 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.2#6252)