summaryrefslogtreecommitdiff
path: root/bar/Bar.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-08-01 19:08:29 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-08-01 19:08:29 +0800
commit05fa3647d355fb4e0798fff1225663b41290f4e8 (patch)
tree8d141b782ab0b2a12742caccd0e054ecf0b98580 /bar/Bar.qml
parent073f07da5d326546a889ad4990c983a6ab783cee (diff)
fix(ActiveWindow): properly resize text when space is unavaliable
Diffstat (limited to 'bar/Bar.qml')
-rw-r--r--bar/Bar.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/bar/Bar.qml b/bar/Bar.qml
index 93b31a6..27bc3e5 100644
--- a/bar/Bar.qml
+++ b/bar/Bar.qml
@@ -86,6 +86,7 @@ Scope {
ActiveWindow {
id: activeWindow
+ width: Math.min(implicitWidth, child.width - Math.max(leftRow.width, rightRow.width) * 2 - Bar.leftMargin - Bar.rightMargin) // we don't do child.width - leftRow.width - rightRow.width because left and right width isn't symetric, and we're centered meaning we will colide into the larger width side
}
}