[ https://issues.apache.org/jira/browse/FLEX-35118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ankush Bangroo updated FLEX-35118: ---------------------------------- Description: When text is selected in spark textinput component , background color of text is light blue. The behavior in mx component is different, since the background color of text is black. I tried to use the setStyle method to change the background color of the text , but setting the value to black overwhelms the characters that have been selected in the TextInput. Can you please provide a resolution so that behavior of mx and spark text input is same. Sample Code here: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:fx="http://ns.adobe.com/mxml/2009" minWidth="300" minHeight="400"> <fx:Script> <![CDATA[ import mx.events.FlexEvent; protected function test_selectionChangeHandler(event:FlexEvent):void { // TODO Auto-generated method stub test.setStyle("focusedTextSelectionColor", "#B0171F" ); } ]]> </fx:Script> <s:VGroup> <s:Label text="①TextInput"> </s:Label> <mx:HBox> <mx:VBox> <s:Label text="↓mx.controls.TextInput"> </s:Label> <mx:TextInput width="200" text="サンプル"> </mx:TextInput> </mx:VBox> <mx:VBox> <s:Label text="↓spark.components.TextInput"> </s:Label> <s:TextInput id="test" width="200" text="サンプル" fontFamily="U-PRESS" selectionChange="test_selectionChangeHandler(event)"> </s:TextInput> </mx:VBox> </mx:HBox> </s:VGroup> </s:Application> was: When text is selected in spark textinput component , background color of text is light blue. The behavior in mx component is different, since the background color of text is black. I tried to use the setStyle method to change the background color of the text , but setting the value to black overwhelms the characters that have been selected in the TextInput. Can you please provide a resolution so that behavior of mx and spark text input is same. > focusedTextSelectionColor suppresses the characters in the textinput when set > to black > -------------------------------------------------------------------------------------- > > Key: FLEX-35118 > URL: https://issues.apache.org/jira/browse/FLEX-35118 > Project: Apache Flex > Issue Type: Bug > Components: Spark: TextInput > Affects Versions: Adobe Flex SDK 4.6 (Release) > Reporter: Ankush Bangroo > > When text is selected in spark textinput component , background color of text > is light blue. > The behavior in mx component is different, since the background color of text > is black. > I tried to use the setStyle method to change the background color of the text > , but setting the value to black overwhelms the characters that have been > selected in the TextInput. > Can you please provide a resolution so that behavior of mx and spark text > input is same. > Sample Code here: > <?xml version="1.0" encoding="utf-8"?> > <s:Application xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:mx="library://ns.adobe.com/flex/mx" > xmlns:fx="http://ns.adobe.com/mxml/2009" > minWidth="300" > minHeight="400"> > <fx:Script> > <![CDATA[ > import mx.events.FlexEvent; > > > > protected function > test_selectionChangeHandler(event:FlexEvent):void > { > // TODO Auto-generated method stub > test.setStyle("focusedTextSelectionColor", > "#B0171F" ); > } > > > ]]> > </fx:Script> > > > <s:VGroup> > <s:Label text="①TextInput"> > </s:Label> > <mx:HBox> > <mx:VBox> > <s:Label text="↓mx.controls.TextInput"> > </s:Label> > <mx:TextInput width="200" text="サンプル"> > </mx:TextInput> > </mx:VBox> > <mx:VBox> > <s:Label text="↓spark.components.TextInput"> > </s:Label> > <s:TextInput id="test" width="200" text="サンプル" > fontFamily="U-PRESS" selectionChange="test_selectionChangeHandler(event)"> > </s:TextInput> > </mx:VBox> > </mx:HBox> > </s:VGroup> > </s:Application> -- This message was sent by Atlassian JIRA (v6.3.4#6332)