mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Tooltip: position fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user