You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Evyatar Ben Halevi-Arbib <ev...@gmail.com> on 2014/03/13 09:13:33 UTC
Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Hello,
After upgrading to version 4.12 TextInput component defined to be with RTL
direction is mirroring the text after focus-out.
When typing the text looks OK, but when leaving the field the text becomes
LTR and in fact becomes mirror writing.
Note that it worked great on version 4.11.
The following example can be used to demonstrate the issue -
<?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 layoutDirection="rtl" direction="rtl" />
</s:Application>
Thanks in advance,
Evyatar
Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Alex Harui <ah...@adobe.com>.
Ah, so this is with the mobile theme? That's why I couldn't repro. I'll
leave this for Maurice to handle.
-Alex
On 3/13/14 11:39 AM, "Maurice Amsellem" <ma...@systar.com>
wrote:
>4.12 uses a new skin that caches the native text as a bitmap when not in
>focus (to better handle scrolling)
>4.11 did not do that.
>
>Can you try with another TextInput that uses 4.11 previous
>StageTextInputSkin skin class (the skin class is still there), to see if
>the behavior is the same ?
>
>Maurice
>
>-----Message d'origine-----
>De : Ori 007 [mailto:ori007@gmail.com]
>Envoyé : jeudi 13 mars 2014 19:09
>À : users@flex.apache.org
>Objet : Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
>
>Actually it does not matter what language I write. English also get the
>same result.
>Another video attached
>
>http://screencast.com/t/ekJnaDOZ6H
>
>
>
>
>On Thu, Mar 13, 2014 at 8:00 PM, Ori 007 <or...@gmail.com> wrote:
>
>> Hi Alex
>>
>> Here is a video the that shows issue.
>> http://screencast.com/t/KRoaC9T5
>>
>> As you did, i added a second TextInput and when leaving the first one,
>> the text jumped to the left side and mirror the letters.
>> Please note that i'm using PC but I checked it on an android device
>> and it was the same.
>> Note that I write in Hebrew (Not Arabic).
>> Please be aware that the example includes the "layoutDirection"
>>property.
>>
>> <?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 layoutDirection="rtl" direction="rtl" foc />
>> <s:TextInput layoutDirection="rtl" direction="rtl" top="50" />
>> </s:Application>
>>
>> Thanks in advance,
>> Ori & Evyatar.
>>
>>
>>
>>
>> On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com> wrote:
>>
>>> I couldn't reproduce, but I may simply not know how.
>>>
>>> I added a second TextInput to your example so there is something to
>>> change focus to that will cause a focusOut on the first TextInput.
>>> Then (on Mac), I ran the app, switched to Arabic, typed "abc" on my
>>> keyboard which caused 3 arabic letters to appear on the right side,
>>> and the second characters was to the left of the first and third
>>> character was to the left of the second. Then I hit tab to focus the
>>> second TextInput and everything looked the same on the screen.
>>>
>>> -Alex
>>>
>>> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib" <ev...@gmail.com>
>>> wrote:
>>>
>>> >Hello,
>>> >
>>> >After upgrading to version 4.12 TextInput component defined to be
>>> >with
>>> RTL
>>> >direction is mirroring the text after focus-out.
>>> >When typing the text looks OK, but when leaving the field the text
>>> becomes
>>> >LTR and in fact becomes mirror writing.
>>> >Note that it worked great on version 4.11.
>>> >
>>> >The following example can be used to demonstrate the issue -
>>> >
>>> ><?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 layoutDirection="rtl" direction="rtl" />
>>> >
>>> >
>>> >
>>> ></s:Application>
>>> >
>>> >Thanks in advance,
>>> >Evyatar
>>>
>>>
>>
RE: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Maurice Amsellem <ma...@systar.com>.
ok
-----Message d'origine-----
De : Ori 007 [mailto:ori007@gmail.com]
Envoyé : vendredi 14 mars 2014 20:15
À : users@flex.apache.org
Objet : Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Please read my comment.
Thanks, Ori.
https://issues.apache.org/jira/browse/FLEX-34145?focusedCommentId=13935477&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13935477
On Fri, Mar 14, 2014 at 5:39 PM, Maurice Amsellem < maurice.amsellem@systar.com> wrote:
> Problem fixed ( the bitmap proxy was mirrored, but it should not be,
> because it's already in the right direction).
> BTW, I also fixed the incorrect placement of the stage text when LTR
> was set at the app level (was not using the correct matrix transformation).
>
> Committed/pushed to develop.
> Should be in the next nightly for you to try in a few hours.
>
> Maurice
>
> -----Message d'origine-----
> De : Ori 007 [mailto:ori007@gmail.com] Envoyé : vendredi 14 mars 2014
> 13:22 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> behavior after upgrading from 4.11 to 4.12
>
> JIRA:
>
> https://issues.apache.org/jira/browse/FLEX-34145
>
>
> On Fri, Mar 14, 2014 at 11:21 AM, Maurice Amsellem <
> maurice.amsellem@systar.com> wrote:
>
> > > If I need my text input in a scrolling zone, What options I have?
> >
> > Wait for the fix ;-)
> >
> > Maurice
> >
> > -----Message d'origine-----
> > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : vendredi 14 mars
> > 2014
> > 10:20 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > behavior after upgrading from 4.11 to 4.12
> >
> > sure.
> > If I need my text input in a scrolling zone, What options I have?
> >
> > Thanks.
> >
> >
> > On Thu, Mar 13, 2014 at 10:36 PM, Maurice Amsellem <
> > maurice.amsellem@systar.com> wrote:
> >
> > > So you can use it instead, as long as you are not embedding your
> > > text in scrolling zone.
> > >
> > > Would you mind raising a JIRA about the RTL issue ?
> > >
> > > https://issues.apache.org/jira
> > >
> > > Maurice
> > >
> > > -----Message d'origine-----
> > > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars 2014
> > > 21:30 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > > behavior after upgrading from 4.11 to 4.12
> > >
> > > StageTextInputSkin works great.
> > >
> > >
> > >
> > >
> > > On Thu, Mar 13, 2014 at 8:39 PM, Maurice Amsellem <
> > > maurice.amsellem@systar.com> wrote:
> > >
> > > > 4.12 uses a new skin that caches the native text as a bitmap
> > > > when not in focus (to better handle scrolling)
> > > > 4.11 did not do that.
> > > >
> > > > Can you try with another TextInput that uses 4.11 previous
> > > > StageTextInputSkin skin class (the skin class is still there),
> > > > to see if the behavior is the same ?
> > > >
> > > > Maurice
> > > >
> > > > -----Message d'origine-----
> > > > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars
> > > > 2014
> > > > 19:09 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > > > behavior after upgrading from 4.11 to 4.12
> > > >
> > > > Actually it does not matter what language I write. English also
> > > > get the same result.
> > > > Another video attached
> > > >
> > > > http://screencast.com/t/ekJnaDOZ6H
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, Mar 13, 2014 at 8:00 PM, Ori 007 <or...@gmail.com> wrote:
> > > >
> > > > > Hi Alex
> > > > >
> > > > > Here is a video the that shows issue.
> > > > > http://screencast.com/t/KRoaC9T5
> > > > >
> > > > > As you did, i added a second TextInput and when leaving the
> > > > > first one, the text jumped to the left side and mirror the letters.
> > > > > Please note that i'm using PC but I checked it on an android
> > > > > device and it was the same.
> > > > > Note that I write in Hebrew (Not Arabic).
> > > > > Please be aware that the example includes the "layoutDirection"
> > > property.
> > > > >
> > > > > <?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 layoutDirection="rtl"
> > > > > direction="rtl" foc /> <s:TextInput layoutDirection="rtl"
> > > > > direction="rtl" top="50" /> </s:Application>
> > > > >
> > > > > Thanks in advance,
> > > > > Ori & Evyatar.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com>
> > wrote:
> > > > >
> > > > >> I couldn't reproduce, but I may simply not know how.
> > > > >>
> > > > >> I added a second TextInput to your example so there is
> > > > >> something to change focus to that will cause a focusOut on
> > > > >> the first
> > TextInput.
> > > > >> Then (on Mac), I ran the app, switched to Arabic, typed "abc"
> > > > >> on my keyboard which caused 3 arabic letters to appear on the
> > > > >> right side, and the second characters was to the left of the
> > > > >> first and third character was to the left of the second.
> > > > >> Then I hit tab to focus the second TextInput and everything
> > > > >> looked the same on the
> > screen.
> > > > >>
> > > > >> -Alex
> > > > >>
> > > > >> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib"
> > > > >> <ev...@gmail.com>
> > > > >> wrote:
> > > > >>
> > > > >> >Hello,
> > > > >> >
> > > > >> >After upgrading to version 4.12 TextInput component defined
> > > > >> >to be with
> > > > >> RTL
> > > > >> >direction is mirroring the text after focus-out.
> > > > >> >When typing the text looks OK, but when leaving the field
> > > > >> >the text
> > > > >> becomes
> > > > >> >LTR and in fact becomes mirror writing.
> > > > >> >Note that it worked great on version 4.11.
> > > > >> >
> > > > >> >The following example can be used to demonstrate the issue -
> > > > >> >
> > > > >> ><?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 layoutDirection="rtl" direction="rtl" />
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> ></s:Application>
> > > > >> >
> > > > >> >Thanks in advance,
> > > > >> >Evyatar
> > > > >>
> > > > >>
> > > > >
> > > >
> > >
> >
>
Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Ori 007 <or...@gmail.com>.
Please read my comment.
Thanks, Ori.
https://issues.apache.org/jira/browse/FLEX-34145?focusedCommentId=13935477&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13935477
On Fri, Mar 14, 2014 at 5:39 PM, Maurice Amsellem <
maurice.amsellem@systar.com> wrote:
> Problem fixed ( the bitmap proxy was mirrored, but it should not be,
> because it's already in the right direction).
> BTW, I also fixed the incorrect placement of the stage text when LTR was
> set at the app level (was not using the correct matrix transformation).
>
> Committed/pushed to develop.
> Should be in the next nightly for you to try in a few hours.
>
> Maurice
>
> -----Message d'origine-----
> De : Ori 007 [mailto:ori007@gmail.com]
> Envoyé : vendredi 14 mars 2014 13:22
> À : users@flex.apache.org
> Objet : Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
>
> JIRA:
>
> https://issues.apache.org/jira/browse/FLEX-34145
>
>
> On Fri, Mar 14, 2014 at 11:21 AM, Maurice Amsellem <
> maurice.amsellem@systar.com> wrote:
>
> > > If I need my text input in a scrolling zone, What options I have?
> >
> > Wait for the fix ;-)
> >
> > Maurice
> >
> > -----Message d'origine-----
> > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : vendredi 14 mars 2014
> > 10:20 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > behavior after upgrading from 4.11 to 4.12
> >
> > sure.
> > If I need my text input in a scrolling zone, What options I have?
> >
> > Thanks.
> >
> >
> > On Thu, Mar 13, 2014 at 10:36 PM, Maurice Amsellem <
> > maurice.amsellem@systar.com> wrote:
> >
> > > So you can use it instead, as long as you are not embedding your
> > > text in scrolling zone.
> > >
> > > Would you mind raising a JIRA about the RTL issue ?
> > >
> > > https://issues.apache.org/jira
> > >
> > > Maurice
> > >
> > > -----Message d'origine-----
> > > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars 2014
> > > 21:30 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > > behavior after upgrading from 4.11 to 4.12
> > >
> > > StageTextInputSkin works great.
> > >
> > >
> > >
> > >
> > > On Thu, Mar 13, 2014 at 8:39 PM, Maurice Amsellem <
> > > maurice.amsellem@systar.com> wrote:
> > >
> > > > 4.12 uses a new skin that caches the native text as a bitmap when
> > > > not in focus (to better handle scrolling)
> > > > 4.11 did not do that.
> > > >
> > > > Can you try with another TextInput that uses 4.11 previous
> > > > StageTextInputSkin skin class (the skin class is still there), to
> > > > see if the behavior is the same ?
> > > >
> > > > Maurice
> > > >
> > > > -----Message d'origine-----
> > > > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars 2014
> > > > 19:09 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > > > behavior after upgrading from 4.11 to 4.12
> > > >
> > > > Actually it does not matter what language I write. English also
> > > > get the same result.
> > > > Another video attached
> > > >
> > > > http://screencast.com/t/ekJnaDOZ6H
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, Mar 13, 2014 at 8:00 PM, Ori 007 <or...@gmail.com> wrote:
> > > >
> > > > > Hi Alex
> > > > >
> > > > > Here is a video the that shows issue.
> > > > > http://screencast.com/t/KRoaC9T5
> > > > >
> > > > > As you did, i added a second TextInput and when leaving the
> > > > > first one, the text jumped to the left side and mirror the letters.
> > > > > Please note that i'm using PC but I checked it on an android
> > > > > device and it was the same.
> > > > > Note that I write in Hebrew (Not Arabic).
> > > > > Please be aware that the example includes the "layoutDirection"
> > > property.
> > > > >
> > > > > <?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 layoutDirection="rtl"
> > > > > direction="rtl" foc /> <s:TextInput layoutDirection="rtl"
> > > > > direction="rtl" top="50" /> </s:Application>
> > > > >
> > > > > Thanks in advance,
> > > > > Ori & Evyatar.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com>
> > wrote:
> > > > >
> > > > >> I couldn't reproduce, but I may simply not know how.
> > > > >>
> > > > >> I added a second TextInput to your example so there is
> > > > >> something to change focus to that will cause a focusOut on the
> > > > >> first
> > TextInput.
> > > > >> Then (on Mac), I ran the app, switched to Arabic, typed "abc"
> > > > >> on my keyboard which caused 3 arabic letters to appear on the
> > > > >> right side, and the second characters was to the left of the
> > > > >> first and third character was to the left of the second. Then
> > > > >> I hit tab to focus the second TextInput and everything looked
> > > > >> the same on the
> > screen.
> > > > >>
> > > > >> -Alex
> > > > >>
> > > > >> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib"
> > > > >> <ev...@gmail.com>
> > > > >> wrote:
> > > > >>
> > > > >> >Hello,
> > > > >> >
> > > > >> >After upgrading to version 4.12 TextInput component defined to
> > > > >> >be with
> > > > >> RTL
> > > > >> >direction is mirroring the text after focus-out.
> > > > >> >When typing the text looks OK, but when leaving the field the
> > > > >> >text
> > > > >> becomes
> > > > >> >LTR and in fact becomes mirror writing.
> > > > >> >Note that it worked great on version 4.11.
> > > > >> >
> > > > >> >The following example can be used to demonstrate the issue -
> > > > >> >
> > > > >> ><?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 layoutDirection="rtl" direction="rtl" />
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> ></s:Application>
> > > > >> >
> > > > >> >Thanks in advance,
> > > > >> >Evyatar
> > > > >>
> > > > >>
> > > > >
> > > >
> > >
> >
>
RE: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Maurice Amsellem <ma...@systar.com>.
Problem fixed ( the bitmap proxy was mirrored, but it should not be, because it's already in the right direction).
BTW, I also fixed the incorrect placement of the stage text when LTR was set at the app level (was not using the correct matrix transformation).
Committed/pushed to develop.
Should be in the next nightly for you to try in a few hours.
Maurice
-----Message d'origine-----
De : Ori 007 [mailto:ori007@gmail.com]
Envoyé : vendredi 14 mars 2014 13:22
À : users@flex.apache.org
Objet : Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
JIRA:
https://issues.apache.org/jira/browse/FLEX-34145
On Fri, Mar 14, 2014 at 11:21 AM, Maurice Amsellem < maurice.amsellem@systar.com> wrote:
> > If I need my text input in a scrolling zone, What options I have?
>
> Wait for the fix ;-)
>
> Maurice
>
> -----Message d'origine-----
> De : Ori 007 [mailto:ori007@gmail.com] Envoyé : vendredi 14 mars 2014
> 10:20 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> behavior after upgrading from 4.11 to 4.12
>
> sure.
> If I need my text input in a scrolling zone, What options I have?
>
> Thanks.
>
>
> On Thu, Mar 13, 2014 at 10:36 PM, Maurice Amsellem <
> maurice.amsellem@systar.com> wrote:
>
> > So you can use it instead, as long as you are not embedding your
> > text in scrolling zone.
> >
> > Would you mind raising a JIRA about the RTL issue ?
> >
> > https://issues.apache.org/jira
> >
> > Maurice
> >
> > -----Message d'origine-----
> > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars 2014
> > 21:30 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > behavior after upgrading from 4.11 to 4.12
> >
> > StageTextInputSkin works great.
> >
> >
> >
> >
> > On Thu, Mar 13, 2014 at 8:39 PM, Maurice Amsellem <
> > maurice.amsellem@systar.com> wrote:
> >
> > > 4.12 uses a new skin that caches the native text as a bitmap when
> > > not in focus (to better handle scrolling)
> > > 4.11 did not do that.
> > >
> > > Can you try with another TextInput that uses 4.11 previous
> > > StageTextInputSkin skin class (the skin class is still there), to
> > > see if the behavior is the same ?
> > >
> > > Maurice
> > >
> > > -----Message d'origine-----
> > > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars 2014
> > > 19:09 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > > behavior after upgrading from 4.11 to 4.12
> > >
> > > Actually it does not matter what language I write. English also
> > > get the same result.
> > > Another video attached
> > >
> > > http://screencast.com/t/ekJnaDOZ6H
> > >
> > >
> > >
> > >
> > > On Thu, Mar 13, 2014 at 8:00 PM, Ori 007 <or...@gmail.com> wrote:
> > >
> > > > Hi Alex
> > > >
> > > > Here is a video the that shows issue.
> > > > http://screencast.com/t/KRoaC9T5
> > > >
> > > > As you did, i added a second TextInput and when leaving the
> > > > first one, the text jumped to the left side and mirror the letters.
> > > > Please note that i'm using PC but I checked it on an android
> > > > device and it was the same.
> > > > Note that I write in Hebrew (Not Arabic).
> > > > Please be aware that the example includes the "layoutDirection"
> > property.
> > > >
> > > > <?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 layoutDirection="rtl"
> > > > direction="rtl" foc /> <s:TextInput layoutDirection="rtl"
> > > > direction="rtl" top="50" /> </s:Application>
> > > >
> > > > Thanks in advance,
> > > > Ori & Evyatar.
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com>
> wrote:
> > > >
> > > >> I couldn't reproduce, but I may simply not know how.
> > > >>
> > > >> I added a second TextInput to your example so there is
> > > >> something to change focus to that will cause a focusOut on the
> > > >> first
> TextInput.
> > > >> Then (on Mac), I ran the app, switched to Arabic, typed "abc"
> > > >> on my keyboard which caused 3 arabic letters to appear on the
> > > >> right side, and the second characters was to the left of the
> > > >> first and third character was to the left of the second. Then
> > > >> I hit tab to focus the second TextInput and everything looked
> > > >> the same on the
> screen.
> > > >>
> > > >> -Alex
> > > >>
> > > >> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib"
> > > >> <ev...@gmail.com>
> > > >> wrote:
> > > >>
> > > >> >Hello,
> > > >> >
> > > >> >After upgrading to version 4.12 TextInput component defined to
> > > >> >be with
> > > >> RTL
> > > >> >direction is mirroring the text after focus-out.
> > > >> >When typing the text looks OK, but when leaving the field the
> > > >> >text
> > > >> becomes
> > > >> >LTR and in fact becomes mirror writing.
> > > >> >Note that it worked great on version 4.11.
> > > >> >
> > > >> >The following example can be used to demonstrate the issue -
> > > >> >
> > > >> ><?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 layoutDirection="rtl" direction="rtl" />
> > > >> >
> > > >> >
> > > >> >
> > > >> ></s:Application>
> > > >> >
> > > >> >Thanks in advance,
> > > >> >Evyatar
> > > >>
> > > >>
> > > >
> > >
> >
>
Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Ori 007 <or...@gmail.com>.
JIRA:
https://issues.apache.org/jira/browse/FLEX-34145
On Fri, Mar 14, 2014 at 11:21 AM, Maurice Amsellem <
maurice.amsellem@systar.com> wrote:
> > If I need my text input in a scrolling zone, What options I have?
>
> Wait for the fix ;-)
>
> Maurice
>
> -----Message d'origine-----
> De : Ori 007 [mailto:ori007@gmail.com]
> Envoyé : vendredi 14 mars 2014 10:20
> À : users@flex.apache.org
> Objet : Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
>
> sure.
> If I need my text input in a scrolling zone, What options I have?
>
> Thanks.
>
>
> On Thu, Mar 13, 2014 at 10:36 PM, Maurice Amsellem <
> maurice.amsellem@systar.com> wrote:
>
> > So you can use it instead, as long as you are not embedding your text
> > in scrolling zone.
> >
> > Would you mind raising a JIRA about the RTL issue ?
> >
> > https://issues.apache.org/jira
> >
> > Maurice
> >
> > -----Message d'origine-----
> > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars 2014
> > 21:30 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > behavior after upgrading from 4.11 to 4.12
> >
> > StageTextInputSkin works great.
> >
> >
> >
> >
> > On Thu, Mar 13, 2014 at 8:39 PM, Maurice Amsellem <
> > maurice.amsellem@systar.com> wrote:
> >
> > > 4.12 uses a new skin that caches the native text as a bitmap when
> > > not in focus (to better handle scrolling)
> > > 4.11 did not do that.
> > >
> > > Can you try with another TextInput that uses 4.11 previous
> > > StageTextInputSkin skin class (the skin class is still there), to
> > > see if the behavior is the same ?
> > >
> > > Maurice
> > >
> > > -----Message d'origine-----
> > > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars 2014
> > > 19:09 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > > behavior after upgrading from 4.11 to 4.12
> > >
> > > Actually it does not matter what language I write. English also get
> > > the same result.
> > > Another video attached
> > >
> > > http://screencast.com/t/ekJnaDOZ6H
> > >
> > >
> > >
> > >
> > > On Thu, Mar 13, 2014 at 8:00 PM, Ori 007 <or...@gmail.com> wrote:
> > >
> > > > Hi Alex
> > > >
> > > > Here is a video the that shows issue.
> > > > http://screencast.com/t/KRoaC9T5
> > > >
> > > > As you did, i added a second TextInput and when leaving the first
> > > > one, the text jumped to the left side and mirror the letters.
> > > > Please note that i'm using PC but I checked it on an android
> > > > device and it was the same.
> > > > Note that I write in Hebrew (Not Arabic).
> > > > Please be aware that the example includes the "layoutDirection"
> > property.
> > > >
> > > > <?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 layoutDirection="rtl"
> > > > direction="rtl" foc /> <s:TextInput layoutDirection="rtl"
> > > > direction="rtl" top="50" /> </s:Application>
> > > >
> > > > Thanks in advance,
> > > > Ori & Evyatar.
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com>
> wrote:
> > > >
> > > >> I couldn't reproduce, but I may simply not know how.
> > > >>
> > > >> I added a second TextInput to your example so there is something
> > > >> to change focus to that will cause a focusOut on the first
> TextInput.
> > > >> Then (on Mac), I ran the app, switched to Arabic, typed "abc" on
> > > >> my keyboard which caused 3 arabic letters to appear on the right
> > > >> side, and the second characters was to the left of the first and
> > > >> third character was to the left of the second. Then I hit tab to
> > > >> focus the second TextInput and everything looked the same on the
> screen.
> > > >>
> > > >> -Alex
> > > >>
> > > >> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib"
> > > >> <ev...@gmail.com>
> > > >> wrote:
> > > >>
> > > >> >Hello,
> > > >> >
> > > >> >After upgrading to version 4.12 TextInput component defined to
> > > >> >be with
> > > >> RTL
> > > >> >direction is mirroring the text after focus-out.
> > > >> >When typing the text looks OK, but when leaving the field the
> > > >> >text
> > > >> becomes
> > > >> >LTR and in fact becomes mirror writing.
> > > >> >Note that it worked great on version 4.11.
> > > >> >
> > > >> >The following example can be used to demonstrate the issue -
> > > >> >
> > > >> ><?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 layoutDirection="rtl" direction="rtl" />
> > > >> >
> > > >> >
> > > >> >
> > > >> ></s:Application>
> > > >> >
> > > >> >Thanks in advance,
> > > >> >Evyatar
> > > >>
> > > >>
> > > >
> > >
> >
>
RE: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Maurice Amsellem <ma...@systar.com>.
> If I need my text input in a scrolling zone, What options I have?
Wait for the fix ;-)
Maurice
-----Message d'origine-----
De : Ori 007 [mailto:ori007@gmail.com]
Envoyé : vendredi 14 mars 2014 10:20
À : users@flex.apache.org
Objet : Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
sure.
If I need my text input in a scrolling zone, What options I have?
Thanks.
On Thu, Mar 13, 2014 at 10:36 PM, Maurice Amsellem < maurice.amsellem@systar.com> wrote:
> So you can use it instead, as long as you are not embedding your text
> in scrolling zone.
>
> Would you mind raising a JIRA about the RTL issue ?
>
> https://issues.apache.org/jira
>
> Maurice
>
> -----Message d'origine-----
> De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars 2014
> 21:30 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> behavior after upgrading from 4.11 to 4.12
>
> StageTextInputSkin works great.
>
>
>
>
> On Thu, Mar 13, 2014 at 8:39 PM, Maurice Amsellem <
> maurice.amsellem@systar.com> wrote:
>
> > 4.12 uses a new skin that caches the native text as a bitmap when
> > not in focus (to better handle scrolling)
> > 4.11 did not do that.
> >
> > Can you try with another TextInput that uses 4.11 previous
> > StageTextInputSkin skin class (the skin class is still there), to
> > see if the behavior is the same ?
> >
> > Maurice
> >
> > -----Message d'origine-----
> > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars 2014
> > 19:09 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > behavior after upgrading from 4.11 to 4.12
> >
> > Actually it does not matter what language I write. English also get
> > the same result.
> > Another video attached
> >
> > http://screencast.com/t/ekJnaDOZ6H
> >
> >
> >
> >
> > On Thu, Mar 13, 2014 at 8:00 PM, Ori 007 <or...@gmail.com> wrote:
> >
> > > Hi Alex
> > >
> > > Here is a video the that shows issue.
> > > http://screencast.com/t/KRoaC9T5
> > >
> > > As you did, i added a second TextInput and when leaving the first
> > > one, the text jumped to the left side and mirror the letters.
> > > Please note that i'm using PC but I checked it on an android
> > > device and it was the same.
> > > Note that I write in Hebrew (Not Arabic).
> > > Please be aware that the example includes the "layoutDirection"
> property.
> > >
> > > <?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 layoutDirection="rtl"
> > > direction="rtl" foc /> <s:TextInput layoutDirection="rtl"
> > > direction="rtl" top="50" /> </s:Application>
> > >
> > > Thanks in advance,
> > > Ori & Evyatar.
> > >
> > >
> > >
> > >
> > > On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com> wrote:
> > >
> > >> I couldn't reproduce, but I may simply not know how.
> > >>
> > >> I added a second TextInput to your example so there is something
> > >> to change focus to that will cause a focusOut on the first TextInput.
> > >> Then (on Mac), I ran the app, switched to Arabic, typed "abc" on
> > >> my keyboard which caused 3 arabic letters to appear on the right
> > >> side, and the second characters was to the left of the first and
> > >> third character was to the left of the second. Then I hit tab to
> > >> focus the second TextInput and everything looked the same on the screen.
> > >>
> > >> -Alex
> > >>
> > >> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib"
> > >> <ev...@gmail.com>
> > >> wrote:
> > >>
> > >> >Hello,
> > >> >
> > >> >After upgrading to version 4.12 TextInput component defined to
> > >> >be with
> > >> RTL
> > >> >direction is mirroring the text after focus-out.
> > >> >When typing the text looks OK, but when leaving the field the
> > >> >text
> > >> becomes
> > >> >LTR and in fact becomes mirror writing.
> > >> >Note that it worked great on version 4.11.
> > >> >
> > >> >The following example can be used to demonstrate the issue -
> > >> >
> > >> ><?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 layoutDirection="rtl" direction="rtl" />
> > >> >
> > >> >
> > >> >
> > >> ></s:Application>
> > >> >
> > >> >Thanks in advance,
> > >> >Evyatar
> > >>
> > >>
> > >
> >
>
Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Ori 007 <or...@gmail.com>.
sure.
If I need my text input in a scrolling zone, What options I have?
Thanks.
On Thu, Mar 13, 2014 at 10:36 PM, Maurice Amsellem <
maurice.amsellem@systar.com> wrote:
> So you can use it instead, as long as you are not embedding your text in
> scrolling zone.
>
> Would you mind raising a JIRA about the RTL issue ?
>
> https://issues.apache.org/jira
>
> Maurice
>
> -----Message d'origine-----
> De : Ori 007 [mailto:ori007@gmail.com]
> Envoyé : jeudi 13 mars 2014 21:30
> À : users@flex.apache.org
> Objet : Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
>
> StageTextInputSkin works great.
>
>
>
>
> On Thu, Mar 13, 2014 at 8:39 PM, Maurice Amsellem <
> maurice.amsellem@systar.com> wrote:
>
> > 4.12 uses a new skin that caches the native text as a bitmap when not
> > in focus (to better handle scrolling)
> > 4.11 did not do that.
> >
> > Can you try with another TextInput that uses 4.11 previous
> > StageTextInputSkin skin class (the skin class is still there), to see
> > if the behavior is the same ?
> >
> > Maurice
> >
> > -----Message d'origine-----
> > De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars 2014
> > 19:09 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> > behavior after upgrading from 4.11 to 4.12
> >
> > Actually it does not matter what language I write. English also get
> > the same result.
> > Another video attached
> >
> > http://screencast.com/t/ekJnaDOZ6H
> >
> >
> >
> >
> > On Thu, Mar 13, 2014 at 8:00 PM, Ori 007 <or...@gmail.com> wrote:
> >
> > > Hi Alex
> > >
> > > Here is a video the that shows issue.
> > > http://screencast.com/t/KRoaC9T5
> > >
> > > As you did, i added a second TextInput and when leaving the first
> > > one, the text jumped to the left side and mirror the letters.
> > > Please note that i'm using PC but I checked it on an android device
> > > and it was the same.
> > > Note that I write in Hebrew (Not Arabic).
> > > Please be aware that the example includes the "layoutDirection"
> property.
> > >
> > > <?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 layoutDirection="rtl" direction="rtl" foc />
> > > <s:TextInput layoutDirection="rtl" direction="rtl" top="50" />
> > > </s:Application>
> > >
> > > Thanks in advance,
> > > Ori & Evyatar.
> > >
> > >
> > >
> > >
> > > On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com> wrote:
> > >
> > >> I couldn't reproduce, but I may simply not know how.
> > >>
> > >> I added a second TextInput to your example so there is something to
> > >> change focus to that will cause a focusOut on the first TextInput.
> > >> Then (on Mac), I ran the app, switched to Arabic, typed "abc" on my
> > >> keyboard which caused 3 arabic letters to appear on the right side,
> > >> and the second characters was to the left of the first and third
> > >> character was to the left of the second. Then I hit tab to focus
> > >> the second TextInput and everything looked the same on the screen.
> > >>
> > >> -Alex
> > >>
> > >> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib"
> > >> <ev...@gmail.com>
> > >> wrote:
> > >>
> > >> >Hello,
> > >> >
> > >> >After upgrading to version 4.12 TextInput component defined to be
> > >> >with
> > >> RTL
> > >> >direction is mirroring the text after focus-out.
> > >> >When typing the text looks OK, but when leaving the field the text
> > >> becomes
> > >> >LTR and in fact becomes mirror writing.
> > >> >Note that it worked great on version 4.11.
> > >> >
> > >> >The following example can be used to demonstrate the issue -
> > >> >
> > >> ><?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 layoutDirection="rtl" direction="rtl" />
> > >> >
> > >> >
> > >> >
> > >> ></s:Application>
> > >> >
> > >> >Thanks in advance,
> > >> >Evyatar
> > >>
> > >>
> > >
> >
>
RE: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Maurice Amsellem <ma...@systar.com>.
So you can use it instead, as long as you are not embedding your text in scrolling zone.
Would you mind raising a JIRA about the RTL issue ?
https://issues.apache.org/jira
Maurice
-----Message d'origine-----
De : Ori 007 [mailto:ori007@gmail.com]
Envoyé : jeudi 13 mars 2014 21:30
À : users@flex.apache.org
Objet : Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
StageTextInputSkin works great.
On Thu, Mar 13, 2014 at 8:39 PM, Maurice Amsellem < maurice.amsellem@systar.com> wrote:
> 4.12 uses a new skin that caches the native text as a bitmap when not
> in focus (to better handle scrolling)
> 4.11 did not do that.
>
> Can you try with another TextInput that uses 4.11 previous
> StageTextInputSkin skin class (the skin class is still there), to see
> if the behavior is the same ?
>
> Maurice
>
> -----Message d'origine-----
> De : Ori 007 [mailto:ori007@gmail.com] Envoyé : jeudi 13 mars 2014
> 19:09 À : users@flex.apache.org Objet : Re: Wrong TextInput RTL
> behavior after upgrading from 4.11 to 4.12
>
> Actually it does not matter what language I write. English also get
> the same result.
> Another video attached
>
> http://screencast.com/t/ekJnaDOZ6H
>
>
>
>
> On Thu, Mar 13, 2014 at 8:00 PM, Ori 007 <or...@gmail.com> wrote:
>
> > Hi Alex
> >
> > Here is a video the that shows issue.
> > http://screencast.com/t/KRoaC9T5
> >
> > As you did, i added a second TextInput and when leaving the first
> > one, the text jumped to the left side and mirror the letters.
> > Please note that i'm using PC but I checked it on an android device
> > and it was the same.
> > Note that I write in Hebrew (Not Arabic).
> > Please be aware that the example includes the "layoutDirection" property.
> >
> > <?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 layoutDirection="rtl" direction="rtl" foc />
> > <s:TextInput layoutDirection="rtl" direction="rtl" top="50" />
> > </s:Application>
> >
> > Thanks in advance,
> > Ori & Evyatar.
> >
> >
> >
> >
> > On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com> wrote:
> >
> >> I couldn't reproduce, but I may simply not know how.
> >>
> >> I added a second TextInput to your example so there is something to
> >> change focus to that will cause a focusOut on the first TextInput.
> >> Then (on Mac), I ran the app, switched to Arabic, typed "abc" on my
> >> keyboard which caused 3 arabic letters to appear on the right side,
> >> and the second characters was to the left of the first and third
> >> character was to the left of the second. Then I hit tab to focus
> >> the second TextInput and everything looked the same on the screen.
> >>
> >> -Alex
> >>
> >> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib"
> >> <ev...@gmail.com>
> >> wrote:
> >>
> >> >Hello,
> >> >
> >> >After upgrading to version 4.12 TextInput component defined to be
> >> >with
> >> RTL
> >> >direction is mirroring the text after focus-out.
> >> >When typing the text looks OK, but when leaving the field the text
> >> becomes
> >> >LTR and in fact becomes mirror writing.
> >> >Note that it worked great on version 4.11.
> >> >
> >> >The following example can be used to demonstrate the issue -
> >> >
> >> ><?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 layoutDirection="rtl" direction="rtl" />
> >> >
> >> >
> >> >
> >> ></s:Application>
> >> >
> >> >Thanks in advance,
> >> >Evyatar
> >>
> >>
> >
>
Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Ori 007 <or...@gmail.com>.
StageTextInputSkin works great.
On Thu, Mar 13, 2014 at 8:39 PM, Maurice Amsellem <
maurice.amsellem@systar.com> wrote:
> 4.12 uses a new skin that caches the native text as a bitmap when not in
> focus (to better handle scrolling)
> 4.11 did not do that.
>
> Can you try with another TextInput that uses 4.11 previous
> StageTextInputSkin skin class (the skin class is still there), to see if
> the behavior is the same ?
>
> Maurice
>
> -----Message d'origine-----
> De : Ori 007 [mailto:ori007@gmail.com]
> Envoyé : jeudi 13 mars 2014 19:09
> À : users@flex.apache.org
> Objet : Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
>
> Actually it does not matter what language I write. English also get the
> same result.
> Another video attached
>
> http://screencast.com/t/ekJnaDOZ6H
>
>
>
>
> On Thu, Mar 13, 2014 at 8:00 PM, Ori 007 <or...@gmail.com> wrote:
>
> > Hi Alex
> >
> > Here is a video the that shows issue.
> > http://screencast.com/t/KRoaC9T5
> >
> > As you did, i added a second TextInput and when leaving the first one,
> > the text jumped to the left side and mirror the letters.
> > Please note that i'm using PC but I checked it on an android device
> > and it was the same.
> > Note that I write in Hebrew (Not Arabic).
> > Please be aware that the example includes the "layoutDirection" property.
> >
> > <?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 layoutDirection="rtl" direction="rtl" foc />
> > <s:TextInput layoutDirection="rtl" direction="rtl" top="50" />
> > </s:Application>
> >
> > Thanks in advance,
> > Ori & Evyatar.
> >
> >
> >
> >
> > On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com> wrote:
> >
> >> I couldn't reproduce, but I may simply not know how.
> >>
> >> I added a second TextInput to your example so there is something to
> >> change focus to that will cause a focusOut on the first TextInput.
> >> Then (on Mac), I ran the app, switched to Arabic, typed "abc" on my
> >> keyboard which caused 3 arabic letters to appear on the right side,
> >> and the second characters was to the left of the first and third
> >> character was to the left of the second. Then I hit tab to focus the
> >> second TextInput and everything looked the same on the screen.
> >>
> >> -Alex
> >>
> >> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib" <ev...@gmail.com>
> >> wrote:
> >>
> >> >Hello,
> >> >
> >> >After upgrading to version 4.12 TextInput component defined to be
> >> >with
> >> RTL
> >> >direction is mirroring the text after focus-out.
> >> >When typing the text looks OK, but when leaving the field the text
> >> becomes
> >> >LTR and in fact becomes mirror writing.
> >> >Note that it worked great on version 4.11.
> >> >
> >> >The following example can be used to demonstrate the issue -
> >> >
> >> ><?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 layoutDirection="rtl" direction="rtl" />
> >> >
> >> >
> >> >
> >> ></s:Application>
> >> >
> >> >Thanks in advance,
> >> >Evyatar
> >>
> >>
> >
>
RE: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Maurice Amsellem <ma...@systar.com>.
4.12 uses a new skin that caches the native text as a bitmap when not in focus (to better handle scrolling)
4.11 did not do that.
Can you try with another TextInput that uses 4.11 previous StageTextInputSkin skin class (the skin class is still there), to see if the behavior is the same ?
Maurice
-----Message d'origine-----
De : Ori 007 [mailto:ori007@gmail.com]
Envoyé : jeudi 13 mars 2014 19:09
À : users@flex.apache.org
Objet : Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Actually it does not matter what language I write. English also get the same result.
Another video attached
http://screencast.com/t/ekJnaDOZ6H
On Thu, Mar 13, 2014 at 8:00 PM, Ori 007 <or...@gmail.com> wrote:
> Hi Alex
>
> Here is a video the that shows issue.
> http://screencast.com/t/KRoaC9T5
>
> As you did, i added a second TextInput and when leaving the first one,
> the text jumped to the left side and mirror the letters.
> Please note that i'm using PC but I checked it on an android device
> and it was the same.
> Note that I write in Hebrew (Not Arabic).
> Please be aware that the example includes the "layoutDirection" property.
>
> <?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 layoutDirection="rtl" direction="rtl" foc />
> <s:TextInput layoutDirection="rtl" direction="rtl" top="50" />
> </s:Application>
>
> Thanks in advance,
> Ori & Evyatar.
>
>
>
>
> On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com> wrote:
>
>> I couldn't reproduce, but I may simply not know how.
>>
>> I added a second TextInput to your example so there is something to
>> change focus to that will cause a focusOut on the first TextInput.
>> Then (on Mac), I ran the app, switched to Arabic, typed "abc" on my
>> keyboard which caused 3 arabic letters to appear on the right side,
>> and the second characters was to the left of the first and third
>> character was to the left of the second. Then I hit tab to focus the
>> second TextInput and everything looked the same on the screen.
>>
>> -Alex
>>
>> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib" <ev...@gmail.com>
>> wrote:
>>
>> >Hello,
>> >
>> >After upgrading to version 4.12 TextInput component defined to be
>> >with
>> RTL
>> >direction is mirroring the text after focus-out.
>> >When typing the text looks OK, but when leaving the field the text
>> becomes
>> >LTR and in fact becomes mirror writing.
>> >Note that it worked great on version 4.11.
>> >
>> >The following example can be used to demonstrate the issue -
>> >
>> ><?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 layoutDirection="rtl" direction="rtl" />
>> >
>> >
>> >
>> ></s:Application>
>> >
>> >Thanks in advance,
>> >Evyatar
>>
>>
>
Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Ori 007 <or...@gmail.com>.
Actually it does not matter what language I write. English also get the
same result.
Another video attached
http://screencast.com/t/ekJnaDOZ6H
On Thu, Mar 13, 2014 at 8:00 PM, Ori 007 <or...@gmail.com> wrote:
> Hi Alex
>
> Here is a video the that shows issue.
> http://screencast.com/t/KRoaC9T5
>
> As you did, i added a second TextInput and when leaving the first one,
> the text jumped to the left side and mirror the letters.
> Please note that i'm using PC but I checked it on an android device and it
> was the same.
> Note that I write in Hebrew (Not Arabic).
> Please be aware that the example includes the "layoutDirection" property.
>
> <?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 layoutDirection="rtl" direction="rtl" foc />
> <s:TextInput layoutDirection="rtl" direction="rtl" top="50" />
> </s:Application>
>
> Thanks in advance,
> Ori & Evyatar.
>
>
>
>
> On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com> wrote:
>
>> I couldn't reproduce, but I may simply not know how.
>>
>> I added a second TextInput to your example so there is something to change
>> focus to that will cause a focusOut on the first TextInput. Then (on
>> Mac), I ran the app, switched to Arabic, typed "abc" on my keyboard which
>> caused 3 arabic letters to appear on the right side, and the second
>> characters was to the left of the first and third character was to the
>> left of the second. Then I hit tab to focus the second TextInput and
>> everything looked the same on the screen.
>>
>> -Alex
>>
>> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib" <ev...@gmail.com>
>> wrote:
>>
>> >Hello,
>> >
>> >After upgrading to version 4.12 TextInput component defined to be with
>> RTL
>> >direction is mirroring the text after focus-out.
>> >When typing the text looks OK, but when leaving the field the text
>> becomes
>> >LTR and in fact becomes mirror writing.
>> >Note that it worked great on version 4.11.
>> >
>> >The following example can be used to demonstrate the issue -
>> >
>> ><?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 layoutDirection="rtl" direction="rtl" />
>> >
>> >
>> >
>> ></s:Application>
>> >
>> >Thanks in advance,
>> >Evyatar
>>
>>
>
Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Ori 007 <or...@gmail.com>.
Hi Alex
Here is a video the that shows issue.
http://screencast.com/t/KRoaC9T5
As you did, i added a second TextInput and when leaving the first one, the
text jumped to the left side and mirror the letters.
Please note that i'm using PC but I checked it on an android device and it
was the same.
Note that I write in Hebrew (Not Arabic).
Please be aware that the example includes the "layoutDirection" property.
<?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 layoutDirection="rtl" direction="rtl" foc />
<s:TextInput layoutDirection="rtl" direction="rtl" top="50" />
</s:Application>
Thanks in advance,
Ori & Evyatar.
On Thu, Mar 13, 2014 at 6:42 PM, Alex Harui <ah...@adobe.com> wrote:
> I couldn't reproduce, but I may simply not know how.
>
> I added a second TextInput to your example so there is something to change
> focus to that will cause a focusOut on the first TextInput. Then (on
> Mac), I ran the app, switched to Arabic, typed "abc" on my keyboard which
> caused 3 arabic letters to appear on the right side, and the second
> characters was to the left of the first and third character was to the
> left of the second. Then I hit tab to focus the second TextInput and
> everything looked the same on the screen.
>
> -Alex
>
> On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib" <ev...@gmail.com>
> wrote:
>
> >Hello,
> >
> >After upgrading to version 4.12 TextInput component defined to be with RTL
> >direction is mirroring the text after focus-out.
> >When typing the text looks OK, but when leaving the field the text becomes
> >LTR and in fact becomes mirror writing.
> >Note that it worked great on version 4.11.
> >
> >The following example can be used to demonstrate the issue -
> >
> ><?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 layoutDirection="rtl" direction="rtl" />
> >
> >
> >
> ></s:Application>
> >
> >Thanks in advance,
> >Evyatar
>
>
Re: Wrong TextInput RTL behavior after upgrading from 4.11 to 4.12
Posted by Alex Harui <ah...@adobe.com>.
I couldn't reproduce, but I may simply not know how.
I added a second TextInput to your example so there is something to change
focus to that will cause a focusOut on the first TextInput. Then (on
Mac), I ran the app, switched to Arabic, typed "abc" on my keyboard which
caused 3 arabic letters to appear on the right side, and the second
characters was to the left of the first and third character was to the
left of the second. Then I hit tab to focus the second TextInput and
everything looked the same on the screen.
-Alex
On 3/13/14 1:13 AM, "Evyatar Ben Halevi-Arbib" <ev...@gmail.com> wrote:
>Hello,
>
>After upgrading to version 4.12 TextInput component defined to be with RTL
>direction is mirroring the text after focus-out.
>When typing the text looks OK, but when leaving the field the text becomes
>LTR and in fact becomes mirror writing.
>Note that it worked great on version 4.11.
>
>The following example can be used to demonstrate the issue -
>
><?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 layoutDirection="rtl" direction="rtl" />
>
>
>
></s:Application>
>
>Thanks in advance,
>Evyatar