flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurice Amsellem (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-34181) No Prompt in TextInput when layoutDirection set to RTL (Mobile)
Date Sun, 30 Mar 2014 11:10:15 GMT

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

Maurice Amsellem commented on FLEX-34181:

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
> 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

View raw message