mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
fix #LINQT-1853 update popup x if exceed width
This commit is contained in:
parent
18ee1566f0
commit
f6e20a9aff
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue