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

Unified Diff: ash/system/web_notification/web_notification_tray.cc

Issue 22291003: ash:Shelf Update Alternate Layout (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
Index: ash/system/web_notification/web_notification_tray.cc
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc
index e59b24127973c2900f52fb1674e4fb89f41c649d..03be8b17650d3ccd4b780d7cff9f4b037d26d92e 100644
--- a/ash/system/web_notification/web_notification_tray.cc
+++ b/ash/system/web_notification/web_notification_tray.cc
@@ -330,7 +330,9 @@ bool WebNotificationTray::ShowMessageCenterInternal(bool show_settings) {
NOTREACHED();
}
- message_center_bubble->SetMaxHeight(std::max(0, max_height - kTraySpacing));
+ int spacing = ash::switches::UseAlternateShelfLayout() ?
+ kAlternateTraySpacing : kTraySpacing;
+ message_center_bubble->SetMaxHeight(std::max(0, max_height - spacing));
if (show_settings)
message_center_bubble->SetSettingsVisible();
message_center_bubble_.reset(

Powered by Google App Engine
This is Rietveld 408576698