| Index: ash/shelf/shelf_layout_manager.cc
|
| diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
|
| index 789c884c5ce5b495e08ff7cb02dd677495b5d3a1..086fad58329bd3006b707f632199c15515c52026 100644
|
| --- a/ash/shelf/shelf_layout_manager.cc
|
| +++ b/ash/shelf/shelf_layout_manager.cc
|
| @@ -46,6 +46,7 @@
|
| #include "ui/events/event.h"
|
| #include "ui/events/event_handler.h"
|
| #include "ui/gfx/screen.h"
|
| +#include "ui/keyboard/keyboard_util.h"
|
| #include "ui/views/widget/widget.h"
|
| #include "ui/wm/public/activation_client.h"
|
|
|
| @@ -840,7 +841,7 @@ void ShelfLayoutManager::CalculateTargetBounds(
|
| // remove entirely the dependency on keyboard and dock.
|
|
|
| // Also push in the work area inset for the keyboard if it is visible.
|
| - if (!keyboard_bounds_.IsEmpty()) {
|
| + if (!keyboard_bounds_.IsEmpty() && !keyboard::IsKeyboardOverscrollEnabled()) {
|
| gfx::Insets keyboard_insets(0, 0, keyboard_bounds_.height(), 0);
|
| target_bounds->work_area_insets += keyboard_insets;
|
| }
|
|
|