Tooltip-TrayMenu: only use the simple mapToItem.

This commit is contained in:
ItsLemmy
2025-10-03 22:01:51 -04:00
parent ccebaa9b42
commit cc59362a1a
2 changed files with 2 additions and 9 deletions
+1 -8
View File
@@ -167,14 +167,7 @@ PopupWindow {
root.implicitHeight = tipHeight
// Get target's global position
var targetGlobal
const targetWindow = targetItem.Window.window
if (targetWindow) {
targetGlobal = targetItem.mapToItem(targetWindow.contentItem, 0, 0)
} else {
targetGlobal = targetItem.mapToItem(null, 0, 0)
}
var targetGlobal = targetItem.mapToItem(null, 0, 0)
const targetWidth = targetItem.width
const targetHeight = targetItem.height