From 1cdaf7981420c09b8170666ca5cc3d95a0930fd0 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Fri, 3 Oct 2025 21:38:26 -0400 Subject: [PATCH] Tooltip: position fix --- Modules/Tooltip/Tooltip.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Modules/Tooltip/Tooltip.qml b/Modules/Tooltip/Tooltip.qml index de1e3cc5c..3e449998f 100644 --- a/Modules/Tooltip/Tooltip.qml +++ b/Modules/Tooltip/Tooltip.qml @@ -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