mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-28 08:33:54 +00:00
Tooltip-TrayMenu: only use the simple mapToItem.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user