Skip to content
Commit 5c8b13c4 authored by mincheli's avatar mincheli Committed by Minche Li
Browse files

Calculates the window height fraction on screen by the draggable bounds for...

Calculates the window height fraction on screen by the draggable bounds for magnification switch button

In the previous change ag/14776093, the window height fraction used
"windowHeightFraction = (float) mParams.y / mWindowHeight;". And it
causes the  Y-position deviated after the rotation is changed.
To correct this, we used the draggable bounds to calculate the window
height fraction.
See b/189715285#comment3

Bug: 189715285
Test: atest MagnificationModeSwitchTest
Change-Id: I1adcea12f0a96c64c9c6e386dc2feb8e3a9ffcf3
parent 5c80e349
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment