From 70bfb9ba30a09ba4ba81b56217b6fba7e08a206e Mon Sep 17 00:00:00 2001 From: Mohsen Date: Wed, 2 Oct 2024 17:08:37 +0330 Subject: [PATCH] Fix QFieldGuide component: adjust pointerToItem. --- src/qml/QFieldGuide.qml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/qml/QFieldGuide.qml b/src/qml/QFieldGuide.qml index 18d4b7e4bf..84b4a30c59 100644 --- a/src/qml/QFieldGuide.qml +++ b/src/qml/QFieldGuide.qml @@ -319,16 +319,11 @@ Popup { x: { if (internalObject.target[0]) { - return internalObject.pos.x + internalObject.target[0].width / 4; - } - return 0; - } - y: { - if (internalObject.target[0]) { - return internalObject.pos.y + (hintPanel.dir ? -(height + 4) : internalObject.target[0].height + 4); + return internalObject.pos.x + internalObject.target[0].width / 2 + (hintPanel.dir ? -8 : 8); } return 0; } + y: hintPanel.dir ? hintPanel.y + hintPanel.height : hintPanel.y ShapePath { fillColor: Theme.mainBackgroundColor