Index: ash/wm/shelf_layout_manager.cc |
diff --git a/ash/wm/shelf_layout_manager.cc b/ash/wm/shelf_layout_manager.cc |
index 348c05810fab21dc9c33865bec8cdd6ca61e71f6..6af5daf2ec8ba4d0e2d752c72d50466f8679c938 100644 |
--- a/ash/wm/shelf_layout_manager.cc |
+++ b/ash/wm/shelf_layout_manager.cc |
@@ -345,8 +345,13 @@ void ShelfLayoutManager::CalculateTargetBounds( |
target_bounds->opacity = |
(state.visibility_state == VISIBLE || |
state.visibility_state == AUTO_HIDE) ? 1.0f : 0.0f; |
- target_bounds->work_area_insets = |
- gfx::Insets(0, 0, shelf_height, 0); |
+ |
+ int work_area_bottom = 0; |
+ if (state.visibility_state == VISIBLE) |
+ work_area_bottom = shelf_height_; |
+ else if (state.visibility_state == AUTO_HIDE) |
+ work_area_bottom = kAutoHideHeight; |
+ target_bounds->work_area_insets.Set(0, 0, work_area_bottom, 0); |
} |
void ShelfLayoutManager::UpdateShelfBackground( |