You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Maurice Amsellem (JIRA)" <ji...@apache.org> on 2014/03/30 13:12:15 UTC

[jira] [Comment Edited] (FLEX-34181) No Prompt in TextInput when layoutDirection set to RTL (Mobile)

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

Maurice Amsellem edited comment on FLEX-34181 at 3/30/14 11:10 AM:
-------------------------------------------------------------------

This is because TextInput mobile skin uses StyleableTextField which cannot be used with RTL alphabets (eg. Hebrew and Arabic).
The workaround is to create a custom skin that overrides createPromptDisplay to use spark Label instead (attached sample file [^RTLStageTextInputSkin.as]).
spark Label is less performant on mobile that StyleableTextField, but this shouldn't be an issue if there are not too many prompt text to display.




was (Author: mamsellem):
This is because TextInput mobile skin uses StyleableTextField which cannot be used with RTL alphabets (eg. Hebrew and Arabic).
The workaround is to create a custom skin that overrides createPromptDisplay to use spark Label instead (attached sample file).
spark Label is less performant on mobile that StyleableTextField, but this shouldn't be an issue if there are not too many prompt text to display.



> No Prompt in TextInput when layoutDirection set to RTL (Mobile)
> ---------------------------------------------------------------
>
>                 Key: FLEX-34181
>                 URL: https://issues.apache.org/jira/browse/FLEX-34181
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: TextInput
>    Affects Versions: Apache Flex 4.12.0
>         Environment: Mobile
>            Reporter: Ori Segal
>            Assignee: Maurice Amsellem
>            Priority: Critical
>         Attachments: RTLStageTextInputSkin.as
>
>
> When layoutDirection set to RTL to Textinput the prompt text does not appear.
> Code Example:
> <?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" applicationDPI="160">
> 	
> 	<s:TextInput prompt="Ori" layoutDirection="ltr"/>
> 	
> 	<s:TextInput prompt="Ori" layoutDirection="rtl" top="50"/>
> 	
> </s:Application>
> Screenshot:
> http://screencast.com/t/HjNAd7PQaVG



--
This message was sent by Atlassian JIRA
(v6.2#6252)