summaryrefslogtreecommitdiff
path: root/modules/drawers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/drawers')
-rw-r--r--modules/drawers/Backgrounds.qml1
-rw-r--r--modules/drawers/Panels.qml8
2 files changed, 8 insertions, 1 deletions
diff --git a/modules/drawers/Backgrounds.qml b/modules/drawers/Backgrounds.qml
index d4ea1d7..3dcc8ad 100644
--- a/modules/drawers/Backgrounds.qml
+++ b/modules/drawers/Backgrounds.qml
@@ -55,6 +55,7 @@ Shape {
BarPopouts.Background {
wrapper: panels.popouts
+ invertBottomRounding: wrapper.y + wrapper.height - BorderConfig.rounding >= root.height
startX: 0
startY: wrapper.y
diff --git a/modules/drawers/Panels.qml b/modules/drawers/Panels.qml
index 844a719..0fb76d5 100644
--- a/modules/drawers/Panels.qml
+++ b/modules/drawers/Panels.qml
@@ -80,6 +80,12 @@ Item {
anchors.left: parent.left
anchors.verticalCenter: parent.top
- anchors.verticalCenterOffset: Popouts.currentCenter - BorderConfig.thickness
+ anchors.verticalCenterOffset: {
+ const off = Popouts.currentCenter - BorderConfig.thickness;
+ const diff = root.height - Math.floor(off + implicitHeight / 2 - BorderConfig.rounding);
+ if (diff < 0)
+ return off + diff;
+ return off;
+ }
}
}