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

Commit 92097fc4 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Correctly apply scrollY

The previous calculation was not correct.
Now we interpolate between the requested height, including the override,
and the actual view bounds.

Test: visual
Bug: 199047412
Change-Id: I62104d04c9cee22d12ca63d55e4f834e44dde335
parent cec06948
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -242,12 +242,12 @@ open class QSTileViewImpl @JvmOverloads constructor(
    }

    private fun updateHeight() {
        val actualHeight = (if (heightOverride != HeightOverrideable.NO_OVERRIDE) {
        val actualHeight = if (heightOverride != HeightOverrideable.NO_OVERRIDE) {
            heightOverride
        } else {
            measuredHeight
        } * squishinessFraction).toInt()
        bottom = top + actualHeight
        }
        bottom = top + (actualHeight * squishinessFraction).toInt()
        scrollY = (actualHeight - height) / 2
    }