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

Unified Diff: ash/shelf/overflow_button.cc

Issue 2823133002: Clean up some ash constants. (Closed)
Patch Set: ditto Created 3 years, 8 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 | « ash/shelf/app_list_button.cc ('k') | ash/shelf/shelf_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/overflow_button.cc
diff --git a/ash/shelf/overflow_button.cc b/ash/shelf/overflow_button.cc
index e770232665c9db5bb7c171fdf229fc00176c0307..9f4a414cf79c7dc138240ab58b377e03e9ce5de1 100644
--- a/ash/shelf/overflow_button.cc
+++ b/ash/shelf/overflow_button.cc
@@ -171,7 +171,7 @@ gfx::Rect OverflowButton::CalculateButtonBounds() const {
gfx::Rect content_bounds = GetContentsBounds();
// Align the button to the top of a bottom-aligned shelf, to the right edge
// a left-aligned shelf, and to the left edge of a right-aligned shelf.
- const int inset = (GetShelfConstant(SHELF_SIZE) - kOverflowButtonSize) / 2;
+ const int inset = (kShelfSize - kOverflowButtonSize) / 2;
const int x = alignment == SHELF_ALIGNMENT_LEFT
? content_bounds.right() - inset - kOverflowButtonSize
: content_bounds.x() + inset;
« no previous file with comments | « ash/shelf/app_list_button.cc ('k') | ash/shelf/shelf_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698