Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Unified Diff: ui/wm/core/window_animations.cc

Issue 1986963003: Apps window keeps moving down to the right when reopened (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/wm/core/visibility_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/window_animations.cc
diff --git a/ui/wm/core/window_animations.cc b/ui/wm/core/window_animations.cc
index 07476c36b0456c73c283fabbf27a1e48dc7852b9..2d0ecea6488c42b0f56c0654f6b8ed6f6eea9b86 100644
--- a/ui/wm/core/window_animations.cc
+++ b/ui/wm/core/window_animations.cc
@@ -103,6 +103,11 @@ class HidingWindowAnimationObserverBase : public aura::WindowObserver {
layer_owner_->root(), topmost_transient_child->layer());
}
}
+ // Reset the transform for the |window_|. Because the animation may have
+ // changed the transform, when recreating the layers we need to reset the
+ // transform otherwise the recreated layer has the transform installed
+ // for the animation.
+ window_->layer()->SetTransform(gfx::Transform());
}
protected:
« no previous file with comments | « ui/wm/core/visibility_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698