summaryrefslogtreecommitdiff
path: root/modules/bar/components/workspaces/OccupiedBg.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-17 20:27:30 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-17 20:27:30 +0800
commit6e82fbc8b901d00acbeeddc724916818cb313b53 (patch)
tree2c277d6b5af9c6adf8ce2d49fc7b06f0ec974c6a /modules/bar/components/workspaces/OccupiedBg.qml
parentfeat: dashboard (diff)
downloadcaelestia-shell-6e82fbc8b901d00acbeeddc724916818cb313b53.tar.gz
caelestia-shell-6e82fbc8b901d00acbeeddc724916818cb313b53.tar.bz2
caelestia-shell-6e82fbc8b901d00acbeeddc724916818cb313b53.zip
refactor: use implicit size instead of actual size
Diffstat (limited to 'modules/bar/components/workspaces/OccupiedBg.qml')
-rw-r--r--modules/bar/components/workspaces/OccupiedBg.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/bar/components/workspaces/OccupiedBg.qml b/modules/bar/components/workspaces/OccupiedBg.qml
index ae9c333..00f9666 100644
--- a/modules/bar/components/workspaces/OccupiedBg.qml
+++ b/modules/bar/components/workspaces/OccupiedBg.qml
@@ -57,8 +57,8 @@ Item {
x: start?.x ?? 0
y: start?.y ?? 0
- width: root.vertical ? BarConfig.sizes.innerHeight : end?.x + end?.width - start?.x
- height: root.vertical ? end?.y + end?.height - start?.y : BarConfig.sizes.innerHeight
+ implicitWidth: root.vertical ? BarConfig.sizes.innerHeight : end?.x + end?.width - start?.x
+ implicitHeight: root.vertical ? end?.y + end?.height - start?.y : BarConfig.sizes.innerHeight
anchors.horizontalCenter: root.vertical ? parent.horizontalCenter : undefined
anchors.verticalCenter: root.vertical ? undefined : parent.verticalCenter