From 93d6bf536a9d0b7a76164b2f6f20e533823ad7cc Mon Sep 17 00:00:00 2001 From: zach Date: Mon, 20 Apr 2026 15:37:14 +0200 Subject: [PATCH] launcher height fixes --- Modules/Launcher/Wrapper.qml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Modules/Launcher/Wrapper.qml b/Modules/Launcher/Wrapper.qml index a2c6ea6..a7ababd 100644 --- a/Modules/Launcher/Wrapper.qml +++ b/Modules/Launcher/Wrapper.qml @@ -25,9 +25,18 @@ Item { readonly property bool shouldBeActive: visibilities.launcher property real offsetScale: shouldBeActive ? 0 : 1 + onShouldBeActiveChanged: { + if (shouldBeActive) { + implicitHeight = Qt.binding(() => content.implicitHeight); + timer.stop(); + } else { + implicitHeight = implicitHeight; + } + } + visible: offsetScale < 1 anchors.bottomMargin: (-implicitHeight - 5) * offsetScale - implicitHeight: contentHeight + implicitHeight: content.implicitHeight implicitWidth: content.implicitWidth || 400 opacity: 1 - offsetScale @@ -39,11 +48,6 @@ Item { } onMaxHeightChanged: timer.start() - onShouldBeActiveChanged: { - if (shouldBeActive) { - timer.stop(); - } - } Connections { function onEnabledChanged(): void {