[
https://issues.apache.org/jira/browse/FLEX-34033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866647#comment-13866647
]
Piotr Zarzycki commented on FLEX-34033:
---------------------------------------
Hi Shigeru
I've just checked and it works fine. No additional line was added when i set
such text to my TextInput.
Checked with Flex 4.11. Whitch version sdk did you use ?
Piotr
> 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)