flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (FLEX-33820) Cutted text after pasting it from MS Excel in spark TextInput
Date Tue, 15 Oct 2013 04:47:41 GMT

     [ https://issues.apache.org/jira/browse/FLEX-33820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alex Harui reassigned FLEX-33820:
---------------------------------

    Assignee: Alex Harui

> Cutted text after pasting it from MS Excel in spark TextInput
> -------------------------------------------------------------
>
>                 Key: FLEX-33820
>                 URL: https://issues.apache.org/jira/browse/FLEX-33820
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: TextInput
>    Affects Versions: Apache Flex 4.10.0
>         Environment: Windows 7 64bit, Adobe Air 2.6
>            Reporter: Piotr Zarzycki
>            Assignee: Alex Harui
>            Priority: Minor
>
> Description:
> Text copied from MS Excel's cell and pasted to spark TextInput is cutted and has got
additional empty line.
> Problem:
> We've got text in MS Excel's cell: "43091080566" -> after copying it from cell it
looks like -> "43091080566\n"
> Example instruction:
> 1)  Copy text using button
> 2) ctrl + v in text input
> 3) We are getting this -> http://bit.ly/1au07ay (Text is cutted, and We've got additional
line in TextInptut) 
> Expected output:
> Compiled same example app with Apache Flex 4.9.0 -> http://bit.ly/1hIAo0x (Text ok,
without additional empty line)
> Example:
> <?xml version="1.0"?>
> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
>                        xmlns:s="library://ns.adobe.com/flex/spark">
>     <fx:Script><![CDATA[
>         private function buttonClickHandler(event:MouseEvent):void
>         {
>             Clipboard.generalClipboard.clear();
>             Clipboard.generalClipboard.setData(ClipboardFormats.TEXT_FORMAT, "43091080566\n");
>         }
>         ]]></fx:Script>
>     <s:layout>
>         <s:VerticalLayout/>
>     </s:layout>
>     <s:Button label="Copy text -> 43091080566\n"
>               click="buttonClickHandler(event)"/>
>     <s:HGroup>
>         <s:TextInput id="txtInput"
>                      width="100" height="30"
>                      maxChars="11"/>
>     </s:HGroup>
> </s:WindowedApplication>



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message