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 -1
View File
@@ -225,7 +225,7 @@ PopupWindow {
// Check bar position first
const barPosition = Settings.data.bar.position
const globalPos = entry.mapToGlobal(0, 0)
const globalPos = entry.mapToItem(null, 0, 0)
if (barPosition === "right") {
// Bar is on the right, prefer opening submenus to the left
+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