mirror of https://github.com/status-im/StatusQ.git
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:
parent
5c3267f7e6
commit
a2e3659d99
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue