From b1005eac5da64c2fbee80912b7cf270a99be1fca Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Fri, 25 Jul 2025 11:24:04 +0200 Subject: [PATCH] fix #LINQT-1853 update popup x if exceed width --- Linphone/view/Control/Button/PopupButton.qml | 4 ++++ 1 file changed, 4 insertions(+) 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)