| Index: ash/wm/workspace/workspace_layout_manager2.cc
|
| diff --git a/ash/wm/workspace/workspace_layout_manager2.cc b/ash/wm/workspace/workspace_layout_manager2.cc
|
| index 6731557b2189c504ac9831d30dd278668e1bce9b..29e4c6c04e27512b33b0fd891465b88607a850ba 100644
|
| --- a/ash/wm/workspace/workspace_layout_manager2.cc
|
| +++ b/ash/wm/workspace/workspace_layout_manager2.cc
|
| @@ -289,7 +289,9 @@ void WorkspaceLayoutManager2::AdjustWindowSizeForScreenChange(
|
| if (reason == ADJUST_WINDOW_SCREEN_SIZE_CHANGED) {
|
| // The work area may be smaller than the full screen. Put as much of the
|
| // window as possible within the display area.
|
| - window->SetBounds(window->bounds().AdjustToFit(work_area_));
|
| + gfx::Rect bounds = window->bounds();
|
| + bounds.AdjustToFit(work_area_);
|
| + window->SetBounds(bounds);
|
| } else if (reason == ADJUST_WINDOW_DISPLAY_INSETS_CHANGED) {
|
| // If the window is completely outside the display work area, then move it
|
| // enough to be visible again.
|
|
|