forked from Shinonome/dots-hyprland
actually fixing popup content spacing this time
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user