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

Maurice Amsellem commented on FLEX-34099:
-----------------------------------------

I have debugged the code on iOS device and this is what happens:
AIR mobile uses AIR native StyleableTextField for both Prompt text and input 
text.
Since StyleableTextField is not directly styleable (not a IStyleClient), it 
will inherit its style from the TextInput css.
Prompt text color vs. input text color are set through state-based CSS, 
something like:

SkinnableTextBase:normalWithPrompt 
{
    color: #BABABA;   /* gray */
    fontStyle: italic;
}

Which means that both the prompt text and the display text are set to gray.

When the display text is set back to black (hi, Amy) as a result of state 
changing to normal, StyleableTextField commitStyles() is called, 
setTextFormat() is called with black color (0x0), but the text is still 
displayed in gray on the device.

This looks like an *AIR mobile issue*.

> TextInput with prompt with TextInputSkin displays gray text on iOS
> ------------------------------------------------------------------
>
>                 Key: FLEX-34099
>                 URL: https://issues.apache.org/jira/browse/FLEX-34099
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Mobile: Text
>    Affects Versions: Apache Flex 4.12.0
>            Reporter: Maurice Amsellem
>            Assignee: Maurice Amsellem
>
> Occurs on iOS6 and iOS7 devices, not on the AIR Emulator



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to