mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Bar: Revert extra exclusion zone pixel. Fix #1163
This commit is contained in:
@@ -45,9 +45,9 @@ PanelWindow {
|
||||
// Vertical bar: reserve bar height + margin on the anchored edge only
|
||||
if (barFloating) {
|
||||
// For left bar, reserve left margin; for right bar, reserve right margin
|
||||
return Style.barHeight + barMarginH + 1;
|
||||
return Style.barHeight + barMarginH;
|
||||
}
|
||||
return Style.barHeight + 1;
|
||||
return Style.barHeight;
|
||||
}
|
||||
return 0; // Auto-width when left/right anchors are true
|
||||
}
|
||||
@@ -57,9 +57,9 @@ PanelWindow {
|
||||
// Horizontal bar: reserve bar height + margin on the anchored edge only
|
||||
if (barFloating) {
|
||||
// For top bar, reserve top margin; for bottom bar, reserve bottom margin
|
||||
return Style.barHeight + barMarginV + 1;
|
||||
return Style.barHeight + barMarginV;
|
||||
}
|
||||
return Style.barHeight + 1;
|
||||
return Style.barHeight;
|
||||
}
|
||||
return 0; // Auto-height when top/bottom anchors are true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user