Fixed PopUpWindow
This commit is contained in:
@@ -14,8 +14,8 @@ PopupWindow {
|
||||
|
||||
visible: false
|
||||
color: "transparent"
|
||||
// width: popupWidth
|
||||
// height: background.height
|
||||
width: Math.max(300, contentColumn.implicitWidth + 2 * 12)
|
||||
height: Math.max(50, contentColumn.implicitHeight + 2 * 12)
|
||||
|
||||
onAnchorHoveredChanged: popup.updateVisibility()
|
||||
|
||||
@@ -57,8 +57,7 @@ PopupWindow {
|
||||
onContainsMouseChanged: popup.updateVisibility()
|
||||
Rectangle {
|
||||
id: background
|
||||
width: parent.width
|
||||
height: contentColumn.implicitHeight + 2 * 12
|
||||
anchors.fill: parent
|
||||
color: Qt.alpha(Colors.primaryContainer, 0.9)
|
||||
radius: 12
|
||||
border {
|
||||
@@ -68,6 +67,7 @@ PopupWindow {
|
||||
|
||||
Column {
|
||||
id: contentColumn
|
||||
width: implicitWidth
|
||||
height: implicitHeight
|
||||
anchors {
|
||||
top: parent.top
|
||||
|
||||
Reference in New Issue
Block a user