summaryrefslogtreecommitdiff
path: root/modules/drawers/Panels.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-04 17:29:53 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-04 17:29:53 +1000
commitbe9666457c7a1c66dc355c0bd5c44188a8eec206 (patch)
tree0cb2d340cb13bcb98a5e1676ccf4e6764e7dde9a /modules/drawers/Panels.qml
parentfeat: bar battery popout (diff)
downloadcaelestia-shell-be9666457c7a1c66dc355c0bd5c44188a8eec206.tar.gz
caelestia-shell-be9666457c7a1c66dc355c0bd5c44188a8eec206.tar.bz2
caelestia-shell-be9666457c7a1c66dc355c0bd5c44188a8eec206.zip
bar: ensure popouts fully on screen
Also round the other way if touching edge
Diffstat (limited to 'modules/drawers/Panels.qml')
-rw-r--r--modules/drawers/Panels.qml8
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;
+ }
}
}