Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0, 5.7.0 Alpha
-
None
-
Mageia Linux Cauldron x86_64
-
99fa43b3708d6615e17d0cc5561aca78a9c72d1a
Description
Test program opens menu where mouse clicked. If clicked near bottom border of window, menu changes size and appears at the top of the window. The size of menu then stays broken. If clicked near right window border, popup even don't reposition.
import QtQuick 2.5 import Qt.labs.controls 1.0 ApplicationWindow { visible: true width: 640 height: 480 Menu { id: menu MenuItem { text: "item 1" } MenuItem { text: "item 2" } MenuItem { text: "item 3" } MenuItem { text: "item 4" } } MouseArea { anchors.fill: parent acceptedButtons: Qt.RightButton onClicked: { menu.x = mouse.x menu.y = mouse.y menu.open() } } }