Incorrect rtl text direction in SELECT popup
Reported by
nikparke...@gmail.com,
Mar 28 2016
|
||||
Issue descriptionSteps to reproduce the problem: 1. Set up selection field on page with rtl text direction. (Selection must have option with first English letter e.x A اختر) 2. Tap on selection to open selection pop up. What is the expected behavior? All selection options have rtl text direction What went wrong? Options, which have first English letter, have ltr text direction instead of rtl. Note: Example of this behavior you can see in attached screenshot. Selection field has next options in html code: - A اختر - ذكر C - A أثنى But in selection field we see incorrect text direction for A أثنى and A اختر. Did this work before? N/A Chrome version: 49.0.2623.105 Channel: n/a OS Version: 4.2.2 Flash Version:
,
Mar 28 2016
,
Mar 28 2016
This seems to be an issue with Android TextViews. The TextView's text direction is "firstStrong" (i.e. "The first strong directional character determines the paragraph direction").
,
Mar 28 2016
nikparker: I'd suggest filing a bug against AOSP (https://source.android.com/source/report-bugs.html) and as a workaround using Left-to-Right and/or Right-to-Left Marks and/or Embedding characters to enforce the desired text direction.
,
Mar 28 2016
Marking WontFix since I don't think there's anything Chrome should be doing differently here.
,
Mar 29 2016
Can we add RTL/LTR marks to labels before passing them to TextViews?
,
Mar 29 2016
We could. How would we determine which marks to add?
,
Mar 29 2016
It seems ContentViewCoreImpl::ShowSelectPopupMenu ignores MenuItem::rtl and MenuItem::has_directional_override. Do they help?
,
Mar 29 2016
MenuItem::rtl is true for all three items; MenuItem::has_directional_override is false for all three items. So, doesn't seem like those values will help.
,
Mar 29 2016
In this case, I think showing all items in RTL solves the problem. So, respecting MenuItem::rtl looks to help.
,
Mar 31 2016
I tried setting the TextView's textDirection attribute explicitly to "rtl" and it didn't affect the display.
,
Apr 4 2016
Thank you for verification. It sounds we have no ways to avoid this issue. |
||||
►
Sign in to add a comment |
||||
Comment 1 by nikparke...@gmail.com
, Mar 28 2016