From bfffe0ccf789eac6248db6ed4a0b6a72c54e5612 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 2 May 2025 16:01:31 +1000 Subject: launcher: animate content --- modules/launcher/Wrapper.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/launcher/Wrapper.qml') diff --git a/modules/launcher/Wrapper.qml b/modules/launcher/Wrapper.qml index ed08ba1..d7385c1 100644 --- a/modules/launcher/Wrapper.qml +++ b/modules/launcher/Wrapper.qml @@ -5,6 +5,7 @@ Item { id: root required property bool launcherVisible + required property real contentHeight property bool shouldBeVisible anchors.left: parent.left @@ -12,7 +13,6 @@ Item { anchors.bottom: parent.bottom height: 0 - clip: true states: State { @@ -20,7 +20,7 @@ Item { when: root.launcherVisible PropertyChanges { - root.height: content.height + root.height: contentHeight root.shouldBeVisible: true } } @@ -52,7 +52,7 @@ Item { NumberAnimation { target: root property: "height" - duration: Appearance.anim.durations.extraLarge + duration: Appearance.anim.durations.normal easing.type: Easing.BezierSpline easing.bezierCurve: Appearance.anim.curves.emphasizedDecel } -- cgit v1.2.3-freya