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

Issue 2866643002: [android omnibox] Move width calculation to onMeasure step (Closed)

Created:
3 years, 7 months ago by Kevin Bailey
Modified:
3 years, 7 months ago
Reviewers:
Ted C
CC:
chromium-reviews, jdonnelly+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[android omnibox] Move width calculation to onMeasure step The Android text renderer runs in the ::measure() step. If the View width is changed after this, in the layout or draw step, the text is not re-laid out; it is truncated. This change moves up the calculation. BUG=718432 Review-Url: https://codereview.chromium.org/2866643002 Cr-Commit-Position: refs/heads/master@{#469869} Committed: https://chromium.googlesource.com/chromium/src/+/d98981b9ab09719407adcb63f639276590f4263b

Patch Set 1 #

Patch Set 2 : Incorporated Ted's fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.java View 1 2 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
Kevin Bailey
Hi Ted, I'm not thrilled with this solution; maybe you can help make it better. ...
3 years, 7 months ago (2017-05-05 01:28:34 UTC) #3
Ted C
On 2017/05/05 01:28:34, Kevin Bailey wrote: > Hi Ted, > > I'm not thrilled with ...
3 years, 7 months ago (2017-05-05 16:13:37 UTC) #4
Justin Donnelly
On 2017/05/05 16:13:37, Ted C wrote: > How do you trigger definitions? I tried typing ...
3 years, 7 months ago (2017-05-05 16:26:43 UTC) #5
Ted C
On 2017/05/05 16:26:43, Justin Donnelly wrote: > On 2017/05/05 16:13:37, Ted C wrote: > > ...
3 years, 7 months ago (2017-05-05 16:30:10 UTC) #6
Justin Donnelly
On 2017/05/05 16:30:10, Ted C wrote: > On 2017/05/05 16:26:43, Justin Donnelly wrote: > > ...
3 years, 7 months ago (2017-05-05 16:34:00 UTC) #7
Kevin Bailey
Hi Ted, I verified the fix as well. It also brings back the ellipsis.
3 years, 7 months ago (2017-05-05 20:37:13 UTC) #9
Ted C
lgtm
3 years, 7 months ago (2017-05-05 23:02:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2866643002/20001
3 years, 7 months ago (2017-05-06 13:24:24 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-05-06 19:10:12 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d98981b9ab09719407adcb63f639...

Powered by Google App Engine
This is Rietveld 408576698