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

Commit 5a2bebbb authored by Annie Chin's avatar Annie Chin
Browse files

Fix default getDateTranslationY.

Fixes: 33386389

Account for height of scaled formula.

Change-Id: I351e23c877a3b3a1390261d0512c36ee23c20810
parent 05e48a7c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -299,10 +299,10 @@ public final class DragController {
        public float getDateTranslationY(float yFraction) {
            // We also want the date to start out above the visible screen with
            // this distance decreasing as it's pulled down.
            // Account for the scaled formula height.
            return -mToolbar.getHeight() * (1 - yFraction)
                    + getResultTranslationY(yFraction)
                    - mDisplayFormula.getPaddingTop() +
                    (mDisplayFormula.getPaddingTop() * yFraction);
                    + getFormulaTranslationY(yFraction)
                    - mDisplayFormula.getHeight() /getFormulaScale(yFraction) * (1 - yFraction);
        }

        public float getHistoryElementTranslationY(float yFraction) {