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

Popup are not positioned within the bounds of the enclosing window

XMLWordPrintable

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

      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

        1. 1st_time.png
          1st_time.png
          34 kB
        2. 2nd_time.png
          2nd_time.png
          37 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes