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

Unified Diff: ash/wm/panel_layout_manager.cc

Issue 12213111: Fix right edge bounds for panel position. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « no previous file | ash/wm/panel_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/panel_layout_manager.cc
diff --git a/ash/wm/panel_layout_manager.cc b/ash/wm/panel_layout_manager.cc
index d1d9494c1a781bc4166497c5e91f56d57b6e7e2a..aee2ca548f2c8266fc9ddd53549189e808417404 100644
--- a/ash/wm/panel_layout_manager.cc
+++ b/ash/wm/panel_layout_manager.cc
@@ -371,8 +371,9 @@ void PanelLayoutManager::Relayout() {
VisiblePanelPositionInfo position_info;
position_info.min_x = std::max(panel_left_bounds, icon_origin.x() +
icon_bounds.width() - panel->bounds().width());
- position_info.max_x = std::min(icon_origin.x(), panel_right_bounds -
- kPanelIdealSpacing);
+ position_info.max_x = std::min(icon_origin.x(),
+ panel_right_bounds - kPanelIdealSpacing -
+ panel->bounds().width());
position_info.x = icon_origin.x() + icon_bounds.width() / 2 -
panel->bounds().width() / 2;
position_info.width = panel->bounds().width();
« no previous file with comments | « no previous file | ash/wm/panel_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698