fix(StatusChatList): ensure right click popup opens in correct position

This broke because the emitted `mouse` coordinates where no longer correct
after we've moved the chat list item into a delegate model.
This commit is contained in:
Pascal Precht 2021-09-24 10:49:19 +02:00 committed by Pascal Precht
parent 5c3267f7e6
commit a2e3659d99
1 changed files with 3 additions and 1 deletions

View File

@ -145,7 +145,9 @@ Column {
}
}
popupMenuSlot.item.popup(mouse.x + 4, statusChatListItem.y + mouse.y + 6)
let p = statusChatListItem.mapToItem(statusChatList, mouse.x, mouse.y)
popupMenuSlot.item.popup(p.x + 4, p.y + 6)
popupMenuSlot.item.openHandler = originalOpenHandler
return
}