| Index: ash/shelf/shelf_layout_manager.cc
|
| diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
|
| index c1316d9476557b117b6ef964469d5c0e9abad6c2..e373c4f092d563c2cf832764ebcc71ec7df7ed2d 100644
|
| --- a/ash/shelf/shelf_layout_manager.cc
|
| +++ b/ash/shelf/shelf_layout_manager.cc
|
| @@ -738,7 +738,11 @@ void ShelfLayoutManager::AdjustBoundsBasedOnAlignment(int inset,
|
| void ShelfLayoutManager::CalculateTargetBounds(
|
| const State& state,
|
| TargetBounds* target_bounds) {
|
| - const gfx::Rect available_bounds(root_window_->bounds());
|
| + gfx::Rect available_bounds =
|
| + ScreenUtil::GetShelfDisplayBoundsInScreen(root_window_);
|
| + available_bounds =
|
| + ScreenUtil::ConvertRectFromScreen(root_window_, available_bounds);
|
| +
|
| gfx::Rect status_size(
|
| shelf_->status_area_widget()->GetWindowBoundsInScreen().size());
|
| int shelf_width = 0, shelf_height = 0;
|
|
|