fix flyout position

This commit is contained in:
Damocles 2026-04-12 11:14:06 +02:00
parent 720d748b37
commit 983e2694a3

View file

@ -19,7 +19,7 @@ PanelWindow {
anchors.left: true anchors.left: true
// Flush below bar, centered on hovered item // Flush below bar, centered on hovered item
margins.top: M.Theme.barHeight margins.top: 0
margins.left: Math.max(0, Math.min( margins.left: Math.max(0, Math.min(
Math.round(M.FlyoutState.itemX - implicitWidth / 2), Math.round(M.FlyoutState.itemX - implicitWidth / 2),
screen.width - implicitWidth screen.width - implicitWidth