launcher height fixes

This commit is contained in:
2026-04-20 15:37:14 +02:00
parent 95a6824598
commit 93d6bf536a
+10 -6
View File
@@ -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 {