mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2025-12-18 00:36:35 +08:00
Patch menu: position of the popup
Change-Id: I9a07dccc7bb4a17c0ce3046906f922d5ace35f8a
This commit is contained in:
committed by
Sébastien Blin
parent
ae86464658
commit
8a9aea2f28
@@ -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) {
|
||||
|
||||
@@ -124,7 +124,6 @@ RowLayout {
|
||||
}
|
||||
modelList: listViewMoreButton.menuMoreButton
|
||||
y: -140
|
||||
x: -20
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user