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

Popup are not positioned within the bounds of the enclosing window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.15.1, 5.15.2, 6.0.1
    • Quick: Controls 2
    • None

    Description

      The Qt documentation states:

      To ensure that the popup is positioned within the bounds of the enclosing window, the margins property can be set to a non-negative value.

      However, this is not the case when y is set and the Popup is reopen.

      This can be demonstrated with the Qt Quick Controls 2 Gallery example and adding items to the ComboBox and using the Material style.

      The first time the Combo is opened, its popup stays within the bounds of the window (see 1st_time.png).
      When reopening the combo, this is not the case anymore: notice how item "L" is not visible in 2nd_time.png.

      This does not happen when:

      • y is set to 0, or y is not set
      • and transformOrigin: Item.Top is not set

      Notably it does not happen for ComboBox when using the Universal style.

      I was not able to reproduce with Qt 5.13.2 or Qt 5.12.8

      Attachments

        1. 1st_time.png
          34 kB
          Benjamin Terrier
        2. 2nd_time.png
          37 kB
          Benjamin Terrier

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              bterrier Benjamin Terrier
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes