Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

The Right To Left flow direction doesn't change the text flow direction in Entry and Editor #5860

Closed
ArunSivaR opened this issue Apr 9, 2019 · 3 comments
Labels
a/rtl e/6 🕕 6 in-progress This issue has an associated pull request that may resolve it! p/UWP t/bug 🐛

Comments

@ArunSivaR
Copy link

ArunSivaR commented Apr 9, 2019

Description
The text flow direction behavior of entry and editor differs in Android and UWP, in a sample if we set the flow direction as Right to Left the editor and entry text doesn't changed in UWP and Android and if we force the editor and entry to change the flow direction by set the flow direction for editor and entry the flow direction changes in Android but doesn't work on UWP

Basic Information

Tested Version: 3.4.0.1029999

Replication Procedure

  1. Run the attached sample EditorSample
  2. In the sample we have added an Entry and Editor inside Grid,
  3. And we have given the flow direction as Right to Left for the page and the elements
  4. But the given text doesn’t display in the given flow direction in UWP
  5. It always displayed in Left to Right flow direction.
@samhouts samhouts added the s/unverified New report that has yet to be verified label Apr 9, 2019
@samhouts
Copy link
Member

@ArunSivaR Thanks! This is a known limitation.

@samhouts samhouts added a/rtl p/UWP e/6 🕕 6 and removed s/unverified New report that has yet to be verified labels Apr 12, 2019
@mrlacey
Copy link
Contributor

mrlacey commented Jun 10, 2019

I'm not really sure about this being a "known limitation" as the FlowDirection isn't being set correctly when compared with using equivalent native control and settings. Even though Windows automatically adjusts for OS level language settings and the text that is entered, it is still possible to force RTL.
The easiest way to tell if the rendered Entry control thinks it's in RTL mode is to set focus and see where the delete button is placed inside the control. If in RTL mode the button will be on the left (as below.) This is what a native single line TextBox does.

image

I'm working on a proper fix and will look at Editor in more detail too.

@KarthikRajaAKR
Copy link

KarthikRajaAKR commented Sep 26, 2019

Hi Team,

We are also facing issue with RTL in iOS while using Entry. We have gone through the limitation page and found that RTL in Entry will work only with device Locale. So we have tested the same by changing Device Locale to Arabic still Entry Text aligned at Left. We are using EntryRenderer to create custom controls. Is there any other limitations on this with Entry in iOS.

Thanks.

hartez added a commit that referenced this issue Mar 20, 2020


Fixes #3359;
Remove DetectFromContent as default alignment for UWP Editor; Fixes #5860
@samhouts samhouts added the in-progress This issue has an associated pull request that may resolve it! label Mar 21, 2020
hartez added a commit that referenced this issue Apr 7, 2020


Fixes #3359;
Remove DetectFromContent as default alignment for UWP Editor; Fixes #5860
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/rtl e/6 🕕 6 in-progress This issue has an associated pull request that may resolve it! p/UWP t/bug 🐛
Projects
None yet
Development

No branches or pull requests

4 participants