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 nirvn committed Oct 3, 2024
1 parent 81ea4d6 commit d722d80
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

1 comment on commit d722d80

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.