diff --git a/applets/notifications/package/contents/ui/global/Globals.qml b/applets/notifications/package/contents/ui/global/Globals.qml --- a/applets/notifications/package/contents/ui/global/Globals.qml +++ b/applets/notifications/package/contents/ui/global/Globals.qml @@ -128,7 +128,7 @@ // The raw width of the popup's content item, the Dialog itself adds some margins property int popupWidth: units.gridUnit * 18 - property int popupEdgeDistance: units.largeSpacing + property int popupCornerDistance: units.largeSpacing * 2 property int popupSpacing: units.largeSpacing // How much vertical screen real estate the notification popups may consume @@ -227,14 +227,14 @@ var y = screenRect.y; if (popupLocation & Qt.AlignBottom) { - y += screenRect.height; + y += screenRect.height - popupCornerDistance; } else { - y += popupEdgeDistance; + y += popupCornerDistance; } var x = screenRect.x; if (popupLocation & Qt.AlignLeft) { - x += popupEdgeDistance; + x += popupCornerDistance; } for (var i = 0; i < popupInstantiator.count; ++i) { @@ -245,7 +245,7 @@ if (popupLocation & Qt.AlignHCenter) { popup.x = x + (screenRect.width - popupEffectiveWidth) / 2; } else if (popupLocation & Qt.AlignRight) { - popup.x = x + screenRect.width - popupEdgeDistance - popupEffectiveWidth; + popup.x = x + screenRect.width - popupCornerDistance - popupEffectiveWidth; } else { popup.x = x; }