You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
CLI: 5.0.0
Cross-platform modules:default ones!
Android Runtime: 5.0.0
iOS Runtime:5.0.0
Describe the bug
it's very simple when i put a long rtl text inside any label or textview the first line is worked good but in second line the line start from LTR .
To Reproduce
just add a label with following text "انا رجل اعمل بجد و لا اجد مضضا في قول ذلك لان العمل الجيد سينجح عاجلا او اجلا بفضل الله".
Expected behavior
it should start the text from the right side like the first line not the left side .
Additional context
i have found a workaround but it's not a good practice , which is calling method when the label is loaded to args.object.android.setGravity(0) so the text works as expected (RTL for the two lines) .
is there any other solution to force the app to treat text with two lines RTL ?
The text was updated successfully, but these errors were encountered:
HI @alqabali,
I tested the described scenario with Label and TextView in a sample project, however, was unable to recreate the issue. For your convenience, I am attaching a screenshot.
Also, it would help if you give us more info about the exact version of the tns-core-modules, you are using and about the device, which is used for testing. I am attaching my test project. You can review it and check if I am missing something.
@tsonevn could you scan this playground and you will get the problem using an android device : https://play.nativescript.org/?template=play-ng&id=11vLvq
i tested this issue using samsung S7 and many other devices!
tns-core-modules 5.0.0 (the latest one) . PS: if i remove the text-right class the text works as expected on android !
Hi @alqabali,
Thank you for the provided sample project,
This issue seems to be related to #6051. Also, check out the solution provided in this comment
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
it's very simple when i put a long rtl text inside any label or textview the first line is worked good but in second line the line start from LTR .
To Reproduce
just add a label with following text "انا رجل اعمل بجد و لا اجد مضضا في قول ذلك لان العمل الجيد سينجح عاجلا او اجلا بفضل الله".
Expected behavior
it should start the text from the right side like the first line not the left side .
Additional context
i have found a workaround but it's not a good practice , which is calling method when the label is loaded to args.object.android.setGravity(0) so the text works as expected (RTL for the two lines) .
is there any other solution to force the app to treat text with two lines RTL ?
The text was updated successfully, but these errors were encountered: