Index: ash/common/wm/default_state.cc |
diff --git a/ash/common/wm/default_state.cc b/ash/common/wm/default_state.cc |
index d17253e6a9187f68018c7fd5e483d8015509fa50..f4cb18fce9d0846dab8a3132665f2d633f731f7d 100644 |
--- a/ash/common/wm/default_state.cc |
+++ b/ash/common/wm/default_state.cc |
@@ -477,8 +477,10 @@ bool DefaultState::ProcessWorkspaceEvents(WindowState* window_state, |
gfx::Rect work_area_in_parent = |
GetDisplayWorkAreaBoundsInParent(window_state->window()); |
gfx::Rect bounds = window_state->window()->GetTargetBounds(); |
- wm::AdjustBoundsToEnsureMinimumWindowVisibility(work_area_in_parent, |
- &bounds); |
+ if (!window_state->window()->GetTransientParent()) { |
+ wm::AdjustBoundsToEnsureMinimumWindowVisibility(work_area_in_parent, |
+ &bounds); |
+ } |
window_state->AdjustSnappedBounds(&bounds); |
if (window_state->window()->GetTargetBounds() != bounds) |
window_state->SetBoundsDirectAnimated(bounds); |