diff --git a/applet/contents/ui/ListItemBase.qml b/applet/contents/ui/ListItemBase.qml --- a/applet/contents/ui/ListItemBase.qml +++ b/applet/contents/ui/ListItemBase.qml @@ -112,7 +112,7 @@ Layout.preferredWidth: Layout.preferredHeight checkable: true iconName: "application-menu" - onClicked: contextMenu.show(x, y + height) + onClicked: contextMenu.show() } } @@ -235,6 +235,9 @@ PlasmaComponents.ContextMenu { id: contextMenu + visualParent: contextMenuButton + placement: PlasmaCore.Types.BottomPosedLeftAlignedPopup + onStatusChanged: { if (status == PlasmaComponents.DialogStatus.Closed) { contextMenuButton.checked = false; @@ -301,9 +304,9 @@ } } - function show(x, y) { + function show() { loadDynamicActions(); - open(x, y); + openRelative(); } } }