flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Kessler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33537) Spark TextArea writing in prompt text format
Date Thu, 19 Nov 2015 01:50:11 GMT

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

Mark Kessler commented on FLEX-33537:

-Reverted the previous commit.

-Having it validateProperties before resetting the focus to the textDisplay.  This gave it
time to finish the previous state changes which set up the prompt just after being added,
before having it removed again. Passed Mustella components/TextInput and TextArea.

Provide any feedback if this causes any other issues.  I will leave this one open for a while.

> Spark TextArea writing in prompt text format
> --------------------------------------------
>                 Key: FLEX-33537
>                 URL: https://issues.apache.org/jira/browse/FLEX-33537
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: TextArea, Spark: TextInput
>    Affects Versions: Apache Flex 4.9.0
>            Reporter: Curtis Aube
>            Assignee: Mark Kessler
>             Fix For: Apache Flex Next
>         Attachments: enter.zip
> Initialize a s:TextArea, set the prompt text to something and set the text to something.
Sometime later set the text to empty string, remove the TextArea from the display, add it
to back the display and set focus on it. The next time you type, you will be typing in the
prompt text format.
> Ex.
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application minHeight="600" minWidth="955" xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark">
> 	<fx:Script>
> 		<![CDATA[
> 			private function selectTextArea():void
> 			{
> 				testTextArea.text = "";
> 				box.removeAllElements();
> 				box.addElement(testTextArea);
> 				testTextArea.setFocus();
> 			}
> 		]]>
> 	</fx:Script>
> 	<s:VGroup>
> 		<s:HGroup>
> 			<s:Button label="Break text area" click="{selectTextArea()}"/>
> 		</s:HGroup>
> 		<s:HGroup id="box">
> 			<s:TextArea id="testTextArea" text="Some text" prompt="Enter something..."/>
> 		</s:HGroup>
> 	</s:VGroup>
> </s:Application>
> Another issue is: If you try to set the focus before removing and adding the TextArea,
the focus rectangle doesn't show up.
> Workaround: Don't set the focus immediately after adding the TextArea such as using callLater.

This message was sent by Atlassian JIRA

View raw message