popout positioning fixes

This commit is contained in:
Zacharias-Brohn
2025-11-27 19:15:35 +01:00
parent fb864da6fb
commit 67ad544359
17 changed files with 201 additions and 93 deletions
+4 -5
View File
@@ -13,7 +13,7 @@ Item {
readonly property alias popouts: popouts
anchors.fill: parent
anchors.margins: 8
// anchors.margins: 8
anchors.topMargin: bar.implicitHeight
Modules.Wrapper {
@@ -21,13 +21,12 @@ Item {
screen: root.screen
anchors.top: parent.top
x: {
const off = currentCenter - 8 - nonAnimWidth / 2;
const off = currentCenter - nonAnimWidth / 2;
const diff = root.width - Math.floor(off + nonAnimWidth);
if (diff < 0)
if ( diff < 0 )
return off + diff;
return Math.floor(Math.max(off, 0));
return Math.floor( Math.max( off, 0 ));
}
}
}