Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30ed6d0d authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "Pinned stack animation: Correct scaling calculations."

parents 7f89ae05 47eddecc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1328,8 +1328,8 @@ class WindowStateAnimator {
            task.mStack.getDimBounds(mTmpStackBounds);
            // We want to calculate the scaling based on the content area, not based on
            // the entire surface, so that we scale in sync with windows that don't have insets.
            mExtraHScale = (mTmpStackBounds.width() - hInsets) / (float)(surfaceWidth - hInsets);
            mExtraVScale = (mTmpStackBounds.height() - vInsets) / (float)(surfaceHeight - vInsets);
            mExtraHScale = mTmpStackBounds.width() / (float)(surfaceWidth - hInsets);
            mExtraVScale = mTmpStackBounds.height() / (float)(surfaceHeight - vInsets);

            // In the case of ForceScaleToStack we scale entire tasks together,
            // and so we need to scale our offsets relative to the task bounds