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

Popup is not resized correctly when it is clamped by Window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.14.2, 5.15.1
    • Quick: Controls 2
    • None
    • - Ubuntu 20.04 x64
      - Windows 10 x64
    • Linux/X11, Windows

      Hi,

      I found a case where a Popup is not resized properly.

      Here is the steps to reproduce this bug :

      • you need at least a Window and a Popup.
      • setup the Popup so its implicit height is greater than the Window's height.
      • implement and fire a small routine that reduces the implicit height of the Popup.
      • the Popup should not resize its height.
      • however, if you resize the window after that, the Popup will resize.

      If the Popup is not clamped by the window, everything is fine.

      ComboBox and its internal Popup seem to be unaffected.

      I attached a small qml file that demonstrates both cases. It requires Qt 5.15.

      Thank you !

        1. 1 - before implicit height changed.png
          61 kB
          e eac
        2. 2 - after implicit height changed.png
          25 kB
          e eac
        3. 3 - after window resized.png
          25 kB
          e eac
        4. main.qml
          2 kB
          e eac
        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
            eacyt e eac
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes