| Index: ash/wm/shelf_layout_manager.cc
|
| diff --git a/ash/wm/shelf_layout_manager.cc b/ash/wm/shelf_layout_manager.cc
|
| index 8aff1aea8fd8bebd95f15909ea02b43a3e00d172..307c3ba3fc90826153ed889802d250108900bf38 100644
|
| --- a/ash/wm/shelf_layout_manager.cc
|
| +++ b/ash/wm/shelf_layout_manager.cc
|
| @@ -746,7 +746,8 @@ void ShelfLayoutManager::UpdateTargetBoundsForGesture(
|
| target_bounds->launcher_bounds_in_root.height() + move - translate);
|
|
|
| // The statusbar should be in the center.
|
| - gfx::Rect status_y = target_bounds->launcher_bounds_in_root.Center(
|
| + gfx::Rect status_y = target_bounds->launcher_bounds_in_root;
|
| + status_y.ClampToCenteredSize(
|
| target_bounds->status_bounds_in_root.size());
|
| target_bounds->status_bounds_in_root.set_y(status_y.y());
|
| }
|
| @@ -774,7 +775,8 @@ void ShelfLayoutManager::UpdateTargetBoundsForGesture(
|
| }
|
|
|
| // The statusbar should be in the center.
|
| - gfx::Rect status_x = target_bounds->launcher_bounds_in_root.Center(
|
| + gfx::Rect status_x = target_bounds->launcher_bounds_in_root;
|
| + status_x.ClampToCenteredSize(
|
| target_bounds->status_bounds_in_root.size());
|
| target_bounds->status_bounds_in_root.set_x(status_x.x());
|
| }
|
|
|