summaryrefslogtreecommitdiff
path: root/modules/bar/popouts/Content.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/popouts/Content.qml')
-rw-r--r--modules/bar/popouts/Content.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml
index b600867..5c9fdf7 100644
--- a/modules/bar/popouts/Content.qml
+++ b/modules/bar/popouts/Content.qml
@@ -10,11 +10,13 @@ Item {
id: root
required property Item wrapper
+ readonly property Popout currentPopout: content.children.find(c => c.shouldBeActive) ?? null
+ readonly property Item current: currentPopout?.item ?? null
anchors.centerIn: parent
- implicitWidth: (content.children.find(c => c.shouldBeActive)?.implicitWidth ?? 0) + Appearance.padding.large * 2
- implicitHeight: (content.children.find(c => c.shouldBeActive)?.implicitHeight ?? 0) + Appearance.padding.large * 2
+ implicitWidth: (currentPopout?.implicitWidth ?? 0) + Appearance.padding.large * 2
+ implicitHeight: (currentPopout?.implicitHeight ?? 0) + Appearance.padding.large * 2
Item {
id: content