diff options
Diffstat (limited to 'modules/drawers/Panels.qml')
| -rw-r--r-- | modules/drawers/Panels.qml | 8 |
1 files changed, 7 insertions, 1 deletions
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; + } } } |