From 21ee389ee2c195ac1895c10c4d5cf9bb3dc1d3f3 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Mon, 20 Mar 2017 10:16:52 +0100 Subject: move positioning anchors out of Notificaion.qml --- components/mail/contents/ui/Mail.qml | 7 +++++++ components/package/contents/ui/Notification.qml | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml index acb75554..528c9073 100644 --- a/components/mail/contents/ui/Mail.qml +++ b/components/mail/contents/ui/Mail.qml @@ -351,9 +351,16 @@ Controls2.ApplicationWindow { } //END AccountWizard + //BEGIN Notification KubeComponents.Notification { id: notificationPopup + + anchors { + top: parent.top + horizontalCenter: parent.horizontalCenter + } } + //END Notification //BEGIN Search Controls2.Popup { diff --git a/components/package/contents/ui/Notification.qml b/components/package/contents/ui/Notification.qml index 51f06512..95be52b6 100644 --- a/components/package/contents/ui/Notification.qml +++ b/components/package/contents/ui/Notification.qml @@ -35,11 +35,6 @@ MouseArea { onTriggered: popup.hide() } - anchors { - top: parent.top - horizontalCenter: parent.horizontalCenter - } - width: Math.max(300, message.contentWidth + (Kirigami.Units.largeSpacing * 2)) height: Math.max(50, message.contentHeight + (Kirigami.Units.largeSpacing * 2)) -- cgit v1.2.3