Fixed PopUpWindow

This commit is contained in:
Hannes
2026-06-19 15:55:51 +02:00
parent 52408627ef
commit 8888b84b0a
3 changed files with 22 additions and 9 deletions
+4 -4
View File
@@ -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