1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

control center: fix height expansion animation being out of sync

This commit is contained in:
bbedward
2026-07-05 10:42:15 -04:00
parent eedba0e8c9
commit 79dfd34ca2
@@ -423,12 +423,14 @@ Column {
}
}
// targetValue-based direction: `active` can be stale when the behavior triggers
Behavior on height {
enabled: true
id: detailHeightBehavior
NumberAnimation {
duration: Theme.variantDuration(Theme.popoutAnimationDuration, detailHost.active)
readonly property bool growing: (detailHeightBehavior.targetValue ?? 0) >= detailHost.height
duration: Theme.variantDuration(Theme.popoutAnimationDuration, growing)
easing.type: Easing.BezierSpline
easing.bezierCurve: detailHost.active ? Theme.variantPopoutEnterCurve : Theme.variantPopoutExitCurve
easing.bezierCurve: growing ? Theme.variantPopoutEnterCurve : Theme.variantPopoutExitCurve
}
}
}