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

Unified Diff: ash/common/system/chromeos/session/logout_button_tray.cc

Issue 2103113003: Fix shelf layout when switching from left-aligned shelf to right-aligned shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: ash/common/system/chromeos/session/logout_button_tray.cc
diff --git a/ash/common/system/chromeos/session/logout_button_tray.cc b/ash/common/system/chromeos/session/logout_button_tray.cc
index ca18e32095f42947eb924ba59d348144e19d6869..9ec382263461841f4a4bdd69db6917f44b5175df 100644
--- a/ash/common/system/chromeos/session/logout_button_tray.cc
+++ b/ash/common/system/chromeos/session/logout_button_tray.cc
@@ -108,8 +108,9 @@ LogoutButtonTray::~LogoutButtonTray() {
WmShell::Get()->system_tray_notifier()->RemoveLogoutButtonObserver(this);
}
-void LogoutButtonTray::SetShelfAlignment(ShelfAlignment alignment) {
- TrayBackgroundView::SetShelfAlignment(alignment);
+void LogoutButtonTray::SetShelfAlignment(ShelfAlignment alignment,
+ const gfx::Insets& insets) {
+ TrayBackgroundView::SetShelfAlignment(alignment, insets);
tray_container()->SetBorder(views::Border::NullBorder());
}

Powered by Google App Engine
This is Rietveld 408576698