diff --git a/Linphone/view/Control/Button/PopupButton.qml b/Linphone/view/Control/Button/PopupButton.qml index f118f0661..6a18c1eb7 100644 --- a/Linphone/view/Control/Button/PopupButton.qml +++ b/Linphone/view/Control/Button/PopupButton.qml @@ -155,6 +155,10 @@ Button { if (y < mainItem.height && y + popupHeight > 0) { x += mainItem.width } + var globalPos = mapToItem(mainItem.Window.contentItem, x, y) + if (globalPos.x + popupWidth >= mainItem.Window.width) { + x = -popupWidth + } } onHeightChanged: Qt.callLater(updatePosition)