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

Justin Mclean updated FLEX-25954:
---------------------------------

    Labels: easytest  (was: )
    
> [TLF 2758977] - out of range RTE when color='red' - works when color=<HEXCODE>
> ------------------------------------------------------------------------------
>
>                 Key: FLEX-25954
>                 URL: https://issues.apache.org/jira/browse/FLEX-25954
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: TextArea
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): All OS Platforms
> Browser: Firefox 3.x
> Language Found: English
>            Reporter: Adobe JIRA
>            Priority: Minor
>              Labels: easytest
>             Fix For: Adobe Flex SDK Previous
>
>
> A watson bug has been filed - http://watsonexp.corp.adobe.com/#bug=2758977
> Problem:
> 'red' throws out of range RTE
> Method:
> <p color="red"/>
> <?xml version="1.0" encoding="utf-8"?> 
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
>                          xmlns:s="library://ns.adobe.com/flex/spark" 
>                          xmlns:mx="library://ns.adobe.com/flex/halo"> 
>       <s:layout> 
>               <s:VerticalLayout paddingLeft="20" paddingRight="20" /> 
>       </s:layout> 
>       
>       <s:TextArea> 
>               <s:textFlow> 
>                       <s:TextFlow> 
>                               <s:p color="red">Para</s:p> 
>                       </s:TextFlow> 
>               </s:textFlow> 
>       </s:TextArea>
> </s:Application>
> Result:
> Expected:
> In Flex SDK in the framework code we do lookup for these string values
> private var colorNames:Object =
>         {
>             transparent: "transparent",
>             black: 0x000000,
>             blue: 0x0000FF,
>             green: 0x008000,
>             gray: 0x808080,
>             silver: 0xC0C0C0,
>             lime: 0x00FF00,
>             olive: 0x808000,
>             white: 0xFFFFFF,
>             yellow: 0xFFFF00,
>             maroon: 0x800000,
>             navy: 0x000080,
>             red: 0xFF0000,
>             purple: 0x800080,
>             teal: 0x008080,
>             fuchsia: 0xFF00FF,
>             aqua: 0x00FFFF,
>             magenta: 0xFF00FF,
>             cyan: 0x00FFFF,
>             
>             // IMPORTANT: Theme colors must also be updated
>             // in the Flex compiler's CSS parser
>             // (in \src\java\macromedia\css\Descriptor.java)
>           
> it is colorNames in StyleManagerImpl
> in the framework directory
> Workaround:
> <?xml version="1.0" encoding="utf-8"?> 
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
>                          xmlns:s="library://ns.adobe.com/flex/spark" 
>                          xmlns:mx="library://ns.adobe.com/flex/halo"> 
>       <s:layout> 
>               <s:VerticalLayout paddingLeft="20" paddingRight="20" /> 
>       </s:layout> 
>       
>       <s:TextArea> 
>               <s:textFlow> 
>                       <s:TextFlow> 
>                               <s:p color="#CFCFCF">Para</s:p> 
>                       </s:TextFlow> 
>               </s:textFlow> 
>       </s:TextArea>
> </s:Application>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to