Tooltip: position fix

This commit is contained in:
ItsLemmy
2025-10-03 21:38:26 -04:00
parent 75e64bc625
commit 1cdaf79814
+8 -1
View File
@@ -167,7 +167,14 @@ PopupWindow {
root.implicitHeight = tipHeight
// Get target's global position
const targetGlobal = targetItem.mapToGlobal(0, 0)
var targetGlobal
const targetWindow = targetItem.Window.window
if (targetWindow) {
targetGlobal = targetItem.mapToItem(targetWindow.contentItem, 0, 0)
} else {
targetGlobal = targetItem.mapToItem(null, 0, 0)
}
const targetWidth = targetItem.width
const targetHeight = targetItem.height