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; |
} |