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

Unified Diff: ash/system/date/tray_date.cc

Issue 23112002: Fixing the gdrive sync item alignment to keep it centered. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/system/tray/tray_item_view.h » ('j') | ash/system/tray/tray_item_view.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/date/tray_date.cc
diff --git a/ash/system/date/tray_date.cc b/ash/system/date/tray_date.cc
index 8cd22e5579f6439eb2295735163f0172236a54ea..18941cf9aec7461083fae7915659c9f8482a286c 100644
--- a/ash/system/date/tray_date.cc
+++ b/ash/system/date/tray_date.cc
@@ -155,7 +155,10 @@ views::View* TrayDate::CreateTrayView(user::LoginStatus status) {
system_tray()->shelf_alignment() == SHELF_ALIGNMENT_TOP) ?
HORIZONTAL_CLOCK : VERTICAL_CLOCK;
time_tray_ = new tray::TimeView(clock_layout);
- views::View* view = new TrayItemView(this);
+ TrayItemView* view = new TrayItemView(this);
+ // Our text needs always to be aligned horizontally - no matter what the
+ // shelf does.
+ view->SetAlignmentOverride(TrayItemView::HORIZONTAL);
jennyz 2013/08/13 20:32:51 You can put the fix in TrayDate:::UpdateAfterShelf
Mr4D (OOO till 08-26) 2013/08/13 21:25:01 Actually - this was not about the date, but the Dr
view->AddChildView(time_tray_);
return view;
}
« no previous file with comments | « no previous file | ash/system/tray/tray_item_view.h » ('j') | ash/system/tray/tray_item_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698