From 758d3694a14dca0e121c57747b69f325bc6d6bed Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 24 Jun 2015 12:45:54 -0700 Subject: [PATCH] make space for the buttons --- applets/notifications/contents/ui/NotificationStripe.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/applets/notifications/contents/ui/NotificationStripe.qml b/applets/notifications/contents/ui/NotificationStripe.qml index 69112a79..c4ce39fb 100644 --- a/applets/notifications/contents/ui/NotificationStripe.qml +++ b/applets/notifications/contents/ui/NotificationStripe.qml @@ -27,7 +27,9 @@ MouseArea { id: notificationItem - height: Math.max(messageLayout.height, icon.height) + background.margins.top + background.margins.bottom + (expanded ? actionsLayout.height : 0) + //actionsLayout.height*2 because the text is centered + //TODO: center the whole block not only the text + height: Math.max(messageLayout.height, icon.height) + background.margins.top + background.margins.bottom + (expanded ? actionsLayout.height*2 : 0) width: parent.width anchors.bottomMargin: 10 drag.axis: Drag.XAxis @@ -148,9 +150,11 @@ MouseArea { height: width source: appIcon && appIcon.length > 0 ? appIcon : "preferences-desktop-notification" } - RowLayout { + + Flow { id: actionsLayout anchors { + left: messageLayout.left right: messageLayout.right top: messageLayout.bottom topMargin: units.smallSpacing