fix: popout transition anim

This commit is contained in:
2 * r + 2 * t 2026-04-08 18:44:38 +10:00
parent b1380235eb
commit eaa6aefa6c
2 changed files with 2 additions and 6 deletions

View file

@ -14,8 +14,6 @@ Item {
readonly property Popout currentPopout: content.children.find(c => c.shouldBeActive) ?? null readonly property Popout currentPopout: content.children.find(c => c.shouldBeActive) ?? null
readonly property Item current: currentPopout?.item ?? null readonly property Item current: currentPopout?.item ?? null
anchors.centerIn: parent
implicitWidth: (currentPopout?.implicitWidth ?? 0) + Appearance.padding.large * 2 implicitWidth: (currentPopout?.implicitWidth ?? 0) + Appearance.padding.large * 2
implicitHeight: (currentPopout?.implicitHeight ?? 0) + Appearance.padding.large * 2 implicitHeight: (currentPopout?.implicitHeight ?? 0) + Appearance.padding.large * 2
@ -171,8 +169,7 @@ Item {
required property string name required property string name
readonly property bool shouldBeActive: root.popouts.currentName === name readonly property bool shouldBeActive: root.popouts.currentName === name
anchors.verticalCenter: parent.verticalCenter anchors.centerIn: parent
anchors.right: parent.right
opacity: 0 opacity: 0
scale: 0.8 scale: 0.8

View file

@ -105,8 +105,7 @@ Item {
id: content id: content
shouldBeActive: root.hasCurrent && !root.detachedMode shouldBeActive: root.hasCurrent && !root.detachedMode
anchors.right: parent.right anchors.fill: parent
anchors.verticalCenter: parent.verticalCenter
sourceComponent: Content { sourceComponent: Content {
popouts: popoutState popouts: popoutState