fix(bar): Correct ActiveWindow layout when empty

This commit is contained in:
loner
2025-10-12 01:34:46 +08:00
parent c9729789a7
commit 9f95901eb7
+1 -7
View File
@@ -47,13 +47,7 @@ Item {
implicitHeight: visible ? ((barPosition === "left" || barPosition === "right") ? calculatedVerticalHeight() : Math.round(Style.barHeight * scaling)) : 0
implicitWidth: visible ? ((barPosition === "left" || barPosition === "right") ? Math.round(Style.baseWidgetSize * 0.8 * scaling) : (widgetWidth * scaling)) : 0
opacity: !autoHide || hasActiveWindow ? 1.0 : 0
Behavior on opacity {
NumberAnimation {
duration: Style.animationNormal
easing.type: Easing.OutCubic
}
}
visible: !autoHide || hasActiveWindow
function calculatedVerticalHeight() {
return Math.round(Style.baseWidgetSize * 0.8 * scaling)