Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.96 KB | None | 0 0
  1. diff --git a/applets/notifications/package/contents/ui/NotificationItem.qml b/applets/notifications/package/contents/ui/NotificationItem.qml
  2. index 4da475c..42f20bc 100644
  3. --- a/applets/notifications/package/contents/ui/NotificationItem.qml
  4. +++ b/applets/notifications/package/contents/ui/NotificationItem.qml
  5. @@ -30,7 +30,7 @@ import org.kde.kquickcontrolsaddons 2.0
  6.  MouseArea {
  7.      id: notificationItem
  8.      width: parent.width
  9. -    implicitHeight: Math.max(appIconItem.visible || imageItem.visible ? units.iconSizes.large : 0, mainLayout.height)
  10. +    implicitHeight: Math.max(appIconItem.valid || imageItem.nativeWidth > 0 ? units.iconSizes.large : 0, mainLayout.height)
  11.  
  12.      // We need to clip here because we support displaying images through <img/>
  13.      // and if we don't clip, they will be painted over the borders of the dialog/item
  14. @@ -153,7 +153,7 @@ MouseArea {
  15.              left: parent.left
  16.          }
  17.  
  18. -        visible: !imageItem.visible && valid
  19. +        visible: imageItem.nativeWidth == 0 && valid
  20.          animated: false
  21.      }
  22.  
  23. @@ -170,7 +170,7 @@ MouseArea {
  24.  
  25.          anchors {
  26.              top: parent.top
  27. -            left: appIconItem.visible || imageItem.visible ? appIconItem.right : parent.left
  28. +            left: appIconItem.valid || imageItem.nativeWidth > 0 ? appIconItem.right : parent.left
  29.              right: parent.right
  30.              leftMargin: units.smallSpacing
  31.          }
  32. @@ -244,7 +244,7 @@ MouseArea {
  33.              // If there is a big notification followed by a small one, the height
  34.              // of the popup does not always shrink back, so this forces it to
  35.              // height=0 when those are invisible. -1 means "default to implicitHeight"
  36. -            Layout.maximumHeight: bodyText.visible || actionsColumn.visible ? -1 : 0
  37. +            Layout.maximumHeight: bodyText.length > 0 || notificationItem.actions.count > 0 ? -1 : 0
  38.  
  39.              PlasmaExtras.ScrollArea {
  40.                  id: bodyTextScrollArea
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement