actually fixing popup content spacing this time

This commit is contained in:
end-4
2026-03-29 19:22:18 +02:00
parent e597928a9e
commit ce52695746
3 changed files with 17 additions and 18 deletions
@@ -21,13 +21,14 @@ HBarWidgetWithPopout {
HBarWidgetContent {
id: contentRoot
vertical: root.vertical
atBottom: root.atBottom
showPopup: root.showPopup
contentImplicitWidth: activeItem.implicitWidth
contentImplicitHeight: activeItem.implicitHeight
onClicked: root.showPopup = !root.showPopup
property var activeItem: sysInfoContent
contentImplicitWidth: sysInfoContent.implicitWidth
contentImplicitHeight: sysInfoContent.implicitHeight
SysInfoContent {
id: sysInfoContent
@@ -37,9 +38,9 @@ HBarWidgetWithPopout {
SysInfoPopupContent {
id: popupContent
anchors {
top: root.vertical ? contentRoot.activeItem.top : contentRoot.activeItem.top
top: parent.top
left: parent.left
topMargin: root.popupContentOffsetY
left: root.vertical ? contentRoot.activeItem.left : contentRoot.activeItem.left
leftMargin: root.popupContentOffsetX
}
@@ -53,9 +53,9 @@ HBarWidgetWithPopout {
PopupContent {
id: popupContent
anchors {
top: root.vertical ? verticalContent.top : horizontalContent.top
top: parent.top
left: parent.left
topMargin: root.popupContentOffsetY
left: root.vertical ? verticalContent.left : horizontalContent.left
leftMargin: root.popupContentOffsetX
}