bar: fix popout wrapping and morphing

This commit is contained in:
2 * r + 2 * t 2025-06-05 18:58:29 +10:00
parent 023d00d658
commit 1d3b59e33d
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ Shape {
BarPopouts.Background { BarPopouts.Background {
wrapper: panels.popouts wrapper: panels.popouts
invertBottomRounding: wrapper.y + wrapper.height - BorderConfig.rounding >= root.height invertBottomRounding: wrapper.y + wrapper.height >= root.height
startX: 0 startX: 0
startY: wrapper.y - rounding startY: wrapper.y - rounding

View file

@ -82,7 +82,7 @@ Item {
anchors.verticalCenter: parent.top anchors.verticalCenter: parent.top
anchors.verticalCenterOffset: { anchors.verticalCenterOffset: {
const off = Popouts.currentCenter - BorderConfig.thickness; const off = Popouts.currentCenter - BorderConfig.thickness;
const diff = root.height - Math.floor(off + implicitHeight / 2 - BorderConfig.rounding); const diff = root.height - Math.floor(off + implicitHeight / 2);
if (diff < 0) if (diff < 0)
return off + diff; return off + diff;
return off; return off;