Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-52608

Popup cannot properly reposition from right and bottom window borders

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.0 RC
    • 5.6.0, 5.7.0 Alpha
    • Quick: Controls 2
    • 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()
              }
          }
      }
      

      Attachments

        1. bottom_click.png
          bottom_click.png
          9 kB
        2. broken_height.png
          broken_height.png
          9 kB
        3. right_click.png
          right_click.png
          11 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            krnekit Nikita Krupenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes