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

Commit fe7a4103 authored by Annie Chin's avatar Annie Chin
Browse files

Result pulldown should account for TranslationY.

Fixes: 33106867

Change-Id: Ib9402192e4f70439c109e0223a612be4293aa8d3
parent aa7dca29
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ public final class DragController {
    private float mFormulaScale;
    private float mResultScale;

    private int mResultTranslationY;
    private float mResultTranslationY;
    private int mResultTranslationX;

    private int mDisplayHeight;
@@ -344,8 +344,8 @@ public final class DragController {
        @Override
        public void initializeResultTranslationY(CalculatorResult result) {
            // Baseline of result moves by the difference in result bottom padding.
            mResultTranslationY = mDisplayResult.getBottom() - result.getBottom()
                   + mDisplayResult.getPaddingBottom() - result.getPaddingBottom()
            mResultTranslationY =  mDisplayResult.getPaddingBottom() - result.getPaddingBottom()
                    - mDisplayResult.getTranslationY()
                    - mBottomPaddingHeight;
        }