summaryrefslogtreecommitdiff
path: root/modules/drawers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/drawers')
-rw-r--r--modules/drawers/Backgrounds.qml4
-rw-r--r--modules/drawers/Panels.qml12
2 files changed, 9 insertions, 7 deletions
diff --git a/modules/drawers/Backgrounds.qml b/modules/drawers/Backgrounds.qml
index 46ca477..b7e3d39 100644
--- a/modules/drawers/Backgrounds.qml
+++ b/modules/drawers/Backgrounds.qml
@@ -60,7 +60,7 @@ Shape {
wrapper: panels.popouts
invertBottomRounding: wrapper.y + wrapper.height + 1 >= root.height
- startX: 0
- startY: wrapper.y - rounding
+ startX: wrapper.x
+ startY: wrapper.y - rounding * sideRounding
}
}
diff --git a/modules/drawers/Panels.qml b/modules/drawers/Panels.qml
index a422fcc..5b2229c 100644
--- a/modules/drawers/Panels.qml
+++ b/modules/drawers/Panels.qml
@@ -80,11 +80,13 @@ Item {
screen: root.screen
- anchors.left: parent.left
- anchors.verticalCenter: parent.top
- anchors.verticalCenterOffset: {
- const off = root.popouts.currentCenter - Config.border.thickness;
- const diff = root.height - Math.floor(off + implicitHeight / 2);
+ x: isDetached ? (root.width - nonAnimWidth) / 2 : 0
+ y: {
+ if (isDetached)
+ return (root.height - nonAnimHeight) / 2;
+
+ const off = currentCenter - Config.border.thickness - nonAnimHeight / 2;
+ const diff = root.height - Math.floor(off + nonAnimHeight);
if (diff < 0)
return off + diff;
return off;