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(); |