From e9b90a1fc1c8ff6eedccae3bce4c7e2f159561cd Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Wed, 28 Apr 2021 15:58:45 +0300 Subject: [PATCH] containment:position properly add plasmoid cross --- containment/package/contents/ui/main.qml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/containment/package/contents/ui/main.qml b/containment/package/contents/ui/main.qml index 61abb6939..40bc4cef1 100644 --- a/containment/package/contents/ui/main.qml +++ b/containment/package/contents/ui/main.qml @@ -888,12 +888,12 @@ Item { when: plasmoid.location === PlasmaCore.Types.BottomEdge AnchorChanges{ - target: dndSpacerAddItem; + target: dndSpacerAddItemContainer; anchors.horizontalCenter: parent.horizontalCenter; anchors.verticalCenter: undefined; anchors.right: undefined; anchors.left: undefined; anchors.top: undefined; anchors.bottom: parent.bottom; } PropertyChanges{ - target: dndSpacerAddItem; + target: dndSpacerAddItemContainer; anchors.leftMargin: 0; anchors.rightMargin: 0; anchors.topMargin:0; anchors.bottomMargin: dndSpacerAddItemContainer.thickMargin; anchors.horizontalCenterOffset: 0; anchors.verticalCenterOffset: 0; } @@ -903,12 +903,12 @@ Item { when: plasmoid.location === PlasmaCore.Types.TopEdge AnchorChanges{ - target: dndSpacerAddItem; + target: dndSpacerAddItemContainer; anchors.horizontalCenter: parent.horizontalCenter; anchors.verticalCenter: undefined; anchors.right: undefined; anchors.left: undefined; anchors.top: parent.top; anchors.bottom: undefined; } PropertyChanges{ - target: dndSpacerAddItem; + target: dndSpacerAddItemContainer; anchors.leftMargin: 0; anchors.rightMargin: 0; anchors.topMargin: dndSpacerAddItemContainer.thickMargin; anchors.bottomMargin: 0; anchors.horizontalCenterOffset: 0; anchors.verticalCenterOffset: 0; } @@ -918,12 +918,12 @@ Item { when: plasmoid.location === PlasmaCore.Types.LeftEdge AnchorChanges{ - target: dndSpacerAddItem; + target: dndSpacerAddItemContainer; anchors.horizontalCenter: undefined; anchors.verticalCenter: parent.verticalCenter; anchors.right: undefined; anchors.left: parent.left; anchors.top: undefined; anchors.bottom: undefined; } PropertyChanges{ - target: dndSpacerAddItem; + target: dndSpacerAddItemContainer; anchors.leftMargin: dndSpacerAddItemContainer.thickMargin; anchors.rightMargin: 0; anchors.topMargin:0; anchors.bottomMargin: 0; anchors.horizontalCenterOffset: 0; anchors.verticalCenterOffset: 0; } @@ -933,12 +933,12 @@ Item { when: plasmoid.location === PlasmaCore.Types.RightEdge AnchorChanges{ - target: dndSpacerAddItem; + target: dndSpacerAddItemContainer; anchors.horizontalCenter: undefined; anchors.verticalCenter: parent.verticalCenter; anchors.right: parent.right; anchors.left: undefined; anchors.top: undefined; anchors.bottom: undefined; } PropertyChanges{ - target: dndSpacerAddItem; + target: dndSpacerAddItemContainer; anchors.leftMargin: 0; anchors.rightMargin: dndSpacerAddItemContainer.thickMargin; anchors.topMargin:0; anchors.bottomMargin: 0; anchors.horizontalCenterOffset: 0; anchors.verticalCenterOffset: 0; }