Skip to content

Commit

Permalink
Fix QFieldGuide component: adjust pointerToItem.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenD98 authored and github-actions[bot] committed Oct 2, 2024
1 parent 81ea4d6 commit 70bfb9b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/qml/QFieldGuide.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70bfb9b

Please sign in to comment.