fuse-open / fuselibs

Fuselibs is the Uno-libraries that provide the UI framework used in Fuse apps
https://npmjs.com/package/@fuse-open/fuselibs
MIT License
176 stars 72 forks source link

Android - Text - RTL - TextAlignment #1406

Open AndrewEQ opened 3 years ago

AndrewEQ commented 3 years ago
with RTL text content (such as Arabic & Hebrew) when it has multiple lines and text-wrapping on, does not align right on Android (tested on 9 & 10).
AndrewEQ commented 3 years ago

Through my testing, I noticed that with RTL content, if you set the Alignment="Left", visually on the device, it aligns to the right and visa versa for Android but not for iOS.

AndrewEQ commented 3 years ago

So I had a look at how Apple is doing RTL in general, it seems that if text is aligned Left, then for RTL its aligned Right automatically and visa versa:

Screenshot 2021-03-26 at 14 57 29

In my testing mentioned above, Android is currently doing the above but iOS isn't, so currently:

LTR

RTL

I believe RTL TextAlignment for iOS needs to match how fuse currently does RTL for Android.

What do you guys think? (@ichan-mb @mortend)

Ref: https://developer.apple.com/videos/play/wwdc2020/10219