1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-23 00:45:29 +02:00

Patch menu: position of the popup

Change-Id: I9a07dccc7bb4a17c0ce3046906f922d5ace35f8a
This commit is contained in:
lcoursodon 2023-10-25 14:20:20 -04:00 committed by Sébastien Blin
parent ae86464658
commit 8a9aea2f28
2 changed files with 2 additions and 3 deletions

View file

@ -45,10 +45,10 @@ BaseContextMenu {
const listViewWidth = listView.width;
if (isOutgoing) {
const leftMargin = msgBubble.mapToItem(listView, 0, 0).x;
return width > leftMargin ? -leftMargin - 20 : -width - 20;
return width > leftMargin ? -leftMargin - 35 : -width - 35;
} else {
const rightMargin = listViewWidth - (msgBubble.x + msgBubble.width);
return width > rightMargin ? msgBubble.width - width + 20 : msgBubble.width + 20;
return width > rightMargin ? msgBubble.width - width + 35 : msgBubble.width + 35;
}
}
function yPositionProvider(height) {

View file

@ -124,7 +124,6 @@ RowLayout {
}
modelList: listViewMoreButton.menuMoreButton
y: -140
x: -20
}
}
}