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

Issue 2230963004: [MD User Menu] Un-hardcode profile card's spacing (Closed)

Created:
4 years, 4 months ago by Jane
Modified:
4 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD User Menu] Un-hardcode profile card's spacing On MD user menu, vertical spacings in the profile card used to be hardcoded, hence causing some display problems on certain locales (see first bug for how Hindi names would get chopped off). This CL calculates the spacing needed given the height of the profile name label and/or username label in the profile card, hence fixing the chopped-off problem - see a new screenshot here: https://screenshot.googleplex.com/FHK5snyG0PH. BUG=636321 BUG=615893 Committed: https://crrev.com/b409fbb2cd01a0d05a40dff2daa22685fa14d2f3 Cr-Commit-Position: refs/heads/master@{#414167}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Removed floor and rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -5 lines) Patch
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
Jane
Thanks!
4 years, 4 months ago (2016-08-24 18:31:04 UTC) #3
sky
https://codereview.chromium.org/2230963004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2230963004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1700 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1700: std::floor((current_profile_photo->GetPreferredSize().height() - Do you really need the floor here? ...
4 years, 4 months ago (2016-08-24 19:40:54 UTC) #4
Jane
https://codereview.chromium.org/2230963004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2230963004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1700 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1700: std::floor((current_profile_photo->GetPreferredSize().height() - On 2016/08/24 19:40:54, sky wrote: > Do ...
4 years, 4 months ago (2016-08-24 19:54:35 UTC) #5
sky
https://codereview.chromium.org/2230963004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2230963004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1700 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1700: std::floor((current_profile_photo->GetPreferredSize().height() - On 2016/08/24 19:54:34, Jane wrote: > On ...
4 years, 4 months ago (2016-08-24 20:29:12 UTC) #6
Jane
https://codereview.chromium.org/2230963004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2230963004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1700 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1700: std::floor((current_profile_photo->GetPreferredSize().height() - On 2016/08/24 20:29:12, sky wrote: > On ...
4 years, 4 months ago (2016-08-24 20:35:17 UTC) #8
sky
LGTM
4 years, 4 months ago (2016-08-24 20:38:48 UTC) #9
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/2230963004/40001
4 years, 3 months ago (2016-08-24 22:02:07 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 3 months ago (2016-08-24 22:09:51 UTC) #17
commit-bot: I haz the power
4 years, 3 months ago (2016-08-24 22:13:59 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b409fbb2cd01a0d05a40dff2daa22685fa14d2f3
Cr-Commit-Position: refs/heads/master@{#414167}

Powered by Google App Engine
This is Rietveld 408576698