New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 598270 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Mar 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Incorrect rtl text direction in SELECT popup

Reported by nikparke...@gmail.com, Mar 28 2016

Issue description

Steps 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:
 
screenshot-018e010b20c96fd2-20160325T094951.png
131 KB View Download
Added link to fiddle example: https://jsfiddle.net/f2p0pjxc/
Owner: n...@chromium.org
Status: Untriaged (was: Unconfirmed)

Comment 3 by n...@chromium.org, 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").

Comment 4 by n...@chromium.org, 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.

Comment 5 by n...@chromium.org, Mar 28 2016

Status: WontFix (was: Untriaged)
Marking WontFix since I don't think there's anything Chrome should be doing differently here.

Comment 6 by tkent@chromium.org, Mar 29 2016

Cc: keishi@chromium.org tkent@chromium.org
Summary: Incorrect rtl text direction in SELECT popup (was: Incorrect rtl text direction in selection pop up.)
Can we add RTL/LTR marks to labels before passing them to TextViews?

Comment 7 by n...@chromium.org, Mar 29 2016

We could. How would we determine which marks to add?

Comment 8 by tkent@chromium.org, Mar 29 2016

It seems ContentViewCoreImpl::ShowSelectPopupMenu ignores MenuItem::rtl and MenuItem::has_directional_override. Do they help?



Comment 9 by n...@chromium.org, 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.

Comment 10 by tkent@chromium.org, Mar 29 2016

In this case, I think showing all items in RTL solves the problem.  So, respecting MenuItem::rtl looks to help.


Comment 11 by n...@chromium.org, Mar 31 2016

I tried setting the TextView's textDirection attribute explicitly to "rtl" and it didn't affect the display.
Thank you for verification.
It sounds we have no ways to avoid this issue.

Sign in to add a comment