← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1504755] [NEW] Popover does not open on top of all other Items

 

You have been subscribed to a public bug:

When I open a Popover, I expect it to be on top of all other Items. This
is not the case if any Item has a z-value > 0, the Popover will then
open behind that Item, potentially hiding the Popover.

Use the example code below to reproduce the issue. Run the qml code and
click the button at the bottom to open the popover behind the blue
rectangle.

import QtQuick 2.4
import Ubuntu.Components 1.3
import Ubuntu.Components.Popups 1.3

Item {
    width: 600
    height: 600

    Rectangle {
        anchors.centerIn: parent
        color: "blue"
        width: 400
        height: 400
        opacity: 0.8
        z: 1
    }
    Rectangle {
        anchors {
            right: parent.right
            verticalCenter: parent.verticalCenter
        }
        width: 300
        height: 300
        color: "yellow"
    }

    Button {
        id: button
        anchors {
            bottom: parent.bottom
            horizontalCenter: parent.horizontalCenter
            margins: 30
        }
        text: "Pop!"
        onClicked: PopupUtils.open(popoverComponent, button)

        Component {
            id: popoverComponent

            Popover {
                Rectangle {
                    color: "green"
                    width: parent.width
                    height: 300
                }
            }
        }
    }
}

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Popover does not open on top of all other Items
https://bugs.launchpad.net/bugs/1504755
You received this bug notification because you are a member of Ubuntu SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.


References