Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Issue 2831193004: Fix text alignment issue in Chrome iOS' omnibox. (Closed)

Created:
3 years, 8 months ago by jif
Modified:
3 years, 6 months ago
CC:
chromium-reviews, jdonnelly+watch_chromium.org, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix text alignment issue in Chrome iOS' omnibox. |preEditTextAlignment| was expecting |bestTextAlignment| to either return a right alignment or a left alignment, but |bestTextAlignment| was sometimes returning NSTextAlignmentNatural. Swiping down the omnibox_popup_view triggered the bug because it results in a call to |HideKeyboard|, which calls |resignFirstResponder|, which triggers a relayout of the omnibox UITextField. BUG=575181

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
jif
ptal
3 years, 8 months ago (2017-04-21 09:42:25 UTC) #6
rohitrao (ping after 24h)
Adding Justin, because I thought we intentionally used Natural here instead of forcing Left or ...
3 years, 8 months ago (2017-04-25 06:49:54 UTC) #9
justincohen
why is www.bbc.com right aligned when Natural?
3 years, 7 months ago (2017-04-26 19:46:24 UTC) #10
jif-google
On 2017/04/26 19:46:24, justincohen wrote: > why is http://www.bbc.com right aligned when Natural? because we ...
3 years, 7 months ago (2017-04-26 20:00:51 UTC) #11
justincohen
Oh, I misunderstood, this is about preEdit. I wonder if any of this alignment logic ...
3 years, 7 months ago (2017-04-26 20:52:28 UTC) #12
rohitrao (ping after 24h)
On 2017/04/26 20:52:28, justincohen wrote: > Oh, I misunderstood, this is about preEdit. > > ...
3 years, 7 months ago (2017-04-27 05:41:08 UTC) #13
Mark P
Has this changelist been abandoned?
3 years, 6 months ago (2017-06-13 04:36:37 UTC) #14
jif
On 2017/06/13 04:36:37, Mark P wrote: > Has this changelist been abandoned? It shouldn't, as ...
3 years, 6 months ago (2017-06-13 13:06:16 UTC) #15
justincohen
3 years, 6 months ago (2017-06-14 00:21:51 UTC) #16
I think this CL can be abandoned in lieu of
https://codereview.chromium.org/2937713002/

Powered by Google App Engine
This is Rietveld 408576698