Skip to content
Snippets Groups Projects
Commit 8a9aea2f authored by Liam Coursodon's avatar Liam Coursodon Committed by Sébastien Blin
Browse files

Patch menu: position of the popup

Change-Id: I9a07dccc7bb4a17c0ce3046906f922d5ace35f8a
parent ae864646
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment