diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-03-20 10:16:52 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-03-20 10:16:52 +0100 |
commit | 21ee389ee2c195ac1895c10c4d5cf9bb3dc1d3f3 (patch) | |
tree | 503e1014e8ea8b6e2fd7eba81673f93f092f380f | |
parent | 7453740335ab416a93b1b198bf48e49b0eea548c (diff) | |
download | kube-21ee389ee2c195ac1895c10c4d5cf9bb3dc1d3f3.tar.gz kube-21ee389ee2c195ac1895c10c4d5cf9bb3dc1d3f3.zip |
move positioning anchors out of Notificaion.qml
-rw-r--r-- | components/mail/contents/ui/Mail.qml | 7 | ||||
-rw-r--r-- | 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 { | |||
351 | } | 351 | } |
352 | //END AccountWizard | 352 | //END AccountWizard |
353 | 353 | ||
354 | //BEGIN Notification | ||
354 | KubeComponents.Notification { | 355 | KubeComponents.Notification { |
355 | id: notificationPopup | 356 | id: notificationPopup |
357 | |||
358 | anchors { | ||
359 | top: parent.top | ||
360 | horizontalCenter: parent.horizontalCenter | ||
361 | } | ||
356 | } | 362 | } |
363 | //END Notification | ||
357 | 364 | ||
358 | //BEGIN Search | 365 | //BEGIN Search |
359 | Controls2.Popup { | 366 | 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 { | |||
35 | onTriggered: popup.hide() | 35 | onTriggered: popup.hide() |
36 | } | 36 | } |
37 | 37 | ||
38 | anchors { | ||
39 | top: parent.top | ||
40 | horizontalCenter: parent.horizontalCenter | ||
41 | } | ||
42 | |||
43 | width: Math.max(300, message.contentWidth + (Kirigami.Units.largeSpacing * 2)) | 38 | width: Math.max(300, message.contentWidth + (Kirigami.Units.largeSpacing * 2)) |
44 | height: Math.max(50, message.contentHeight + (Kirigami.Units.largeSpacing * 2)) | 39 | height: Math.max(50, message.contentHeight + (Kirigami.Units.largeSpacing * 2)) |
45 | 40 | ||