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

Unified Diff: ash/system/overview/overview_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/system/overview/overview_button_tray.cc
diff --git a/ash/system/overview/overview_button_tray.cc b/ash/system/overview/overview_button_tray.cc
index 499ae5684481fc61c33b5d17165405e0d09b6cf8..aad3598c8c7ad115e7e487674e9584e278d9dcee 100644
--- a/ash/system/overview/overview_button_tray.cc
+++ b/ash/system/overview/overview_button_tray.cc
@@ -106,11 +106,12 @@ void OverviewButtonTray::HideBubbleWithView(
// This class has no bubbles to hide.
}
-void OverviewButtonTray::SetShelfAlignment(ShelfAlignment alignment) {
+void OverviewButtonTray::SetShelfAlignment(ShelfAlignment alignment,
+ const gfx::Insets& insets) {
if (alignment == shelf_alignment())
return;
- TrayBackgroundView::SetShelfAlignment(alignment);
+ TrayBackgroundView::SetShelfAlignment(alignment, insets);
SetIconBorderForShelfAlignment();
}

Powered by Google App Engine
This is Rietveld 408576698