| Index: ash/wm/shelf_layout_manager.cc
|
| diff --git a/ash/wm/shelf_layout_manager.cc b/ash/wm/shelf_layout_manager.cc
|
| index eca4c40c5b2f3289ac560ed79147def6f49cfeaa..b352b1a372fc0fee578b9ddc8c4e3c1038d915c9 100644
|
| --- a/ash/wm/shelf_layout_manager.cc
|
| +++ b/ash/wm/shelf_layout_manager.cc
|
| @@ -43,7 +43,8 @@ ShelfLayoutManager::ShelfLayoutManager(views::Widget* launcher,
|
|
|
| ShelfLayoutManager::~ShelfLayoutManager() {
|
| // Without a shelf we don't need special insets anymore.
|
| - Shell::GetInstance()->SetScreenWorkAreaInsets(gfx::Insets());
|
| + Shell::GetInstance()->SetMonitorWorkAreaInsets(
|
| + Shell::GetRootWindow(), gfx::Insets());
|
| }
|
|
|
| void ShelfLayoutManager::LayoutShelf() {
|
| @@ -58,7 +59,8 @@ void ShelfLayoutManager::LayoutShelf() {
|
| status_->SetBounds(target_bounds.status_bounds);
|
| Shell::GetInstance()->launcher()->SetStatusWidth(
|
| target_bounds.status_bounds.width());
|
| - Shell::GetInstance()->SetScreenWorkAreaInsets(
|
| + Shell::GetInstance()->SetMonitorWorkAreaInsets(
|
| + Shell::GetRootWindow(),
|
| target_bounds.work_area_insets);
|
| }
|
|
|
| @@ -150,7 +152,8 @@ void ShelfLayoutManager::CalculateTargetBounds(bool visible,
|
| void ShelfLayoutManager::OnImplicitAnimationsCompleted() {
|
| TargetBounds target_bounds;
|
| CalculateTargetBounds(visible_, &target_bounds);
|
| - Shell::GetInstance()->SetScreenWorkAreaInsets(
|
| + Shell::GetInstance()->SetMonitorWorkAreaInsets(
|
| + Shell::GetRootWindow(),
|
| target_bounds.work_area_insets);
|
| }
|
|
|
|
|