launcher: fix exclusion with utilities
This commit is contained in:
parent
302a82da2d
commit
3d6e335030
1 changed files with 6 additions and 3 deletions
|
|
@ -23,10 +23,13 @@ PathView {
|
|||
return 0;
|
||||
|
||||
// Screen width - 4x outer rounding - 2x max side thickness (cause centered)
|
||||
let outerMargins = Math.max(Config.border.thickness, panels.bar.implicitWidth);
|
||||
const barMargins = Math.max(Config.border.thickness, panels.bar.implicitWidth);
|
||||
let outerMargins = 0;
|
||||
if (panels.popouts.hasCurrent && panels.popouts.currentCenter + panels.popouts.nonAnimHeight / 2 > screen.height - content.implicitHeight - Config.border.thickness * 2)
|
||||
outerMargins = panels.bar.implicitWidth + panels.popouts.nonAnimWidth;
|
||||
const maxWidth = screen.width - Config.border.rounding * 4 - outerMargins * 2;
|
||||
outerMargins = panels.popouts.nonAnimWidth;
|
||||
if (visibilities.utilities && panels.utilities.implicitWidth > outerMargins)
|
||||
outerMargins = panels.utilities.implicitWidth;
|
||||
const maxWidth = screen.width - Config.border.rounding * 4 - (barMargins + outerMargins) * 2;
|
||||
|
||||
if (maxWidth <= 0)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue