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

Issue 23112002: Fixing the gdrive sync item alignment to keep it centered. (Closed)

Created:
7 years, 4 months ago by Mr4D (OOO till 08-26)
Modified:
7 years, 4 months ago
Reviewers:
jennyz
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Fixing the gdrive sync item alignment to keep it centered. Beside the fact that the gdrive sync item does not have the same size as all other images (17x19px instead of 25x25px), it was also not getting centered because the assigned layouter. The layouter needs then to be switched dynamically with the shelf alignment so that the sync item gets always centered. The time view should not be changed at all for this, since it changes the layout itself already. BUG=180462 TEST=visual: using gdrive sync and switching (before, while or after) the sync to another alignment and the items in the tray stay always centered. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217490

Patch Set 1 #

Total comments: 4

Patch Set 2 : Reduced to only change the tray_image_item #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -1 line) Patch
M ash/system/tray/tray_image_item.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/tray/tray_image_item.cc View 1 4 chunks +21 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Mr4D (OOO till 08-26)
Please have a look!
7 years, 4 months ago (2013-08-13 19:20:20 UTC) #1
jennyz
https://codereview.chromium.org/23112002/diff/1/ash/system/date/tray_date.cc File ash/system/date/tray_date.cc (right): https://codereview.chromium.org/23112002/diff/1/ash/system/date/tray_date.cc#newcode161 ash/system/date/tray_date.cc:161: view->SetAlignmentOverride(TrayItemView::HORIZONTAL); You can put the fix in TrayDate:::UpdateAfterShelfAlignmentChange. https://codereview.chromium.org/23112002/diff/1/ash/system/tray/tray_item_view.h ...
7 years, 4 months ago (2013-08-13 20:32:50 UTC) #2
Mr4D (OOO till 08-26)
Okay - simplified by moving the alignment to only the object handler in question (as ...
7 years, 4 months ago (2013-08-13 21:25:01 UTC) #3
jennyz
lgtm
7 years, 4 months ago (2013-08-13 22:01:55 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/23112002/7001
7 years, 4 months ago (2013-08-13 22:43:05 UTC) #5
commit-bot: I haz the power
7 years, 4 months ago (2013-08-14 05:48:45 UTC) #6
Message was sent while issue was closed.
Change committed as 217490

Powered by Google App Engine
This is Rietveld 408576698