From b8e5a90ae6494d52905263f2fb7b1e8ee489d75a Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Tue, 23 Sep 2014 16:36:28 +0200 Subject: [PATCH] fixed max line computation --- src/plugins/backends/snore/notification.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/backends/snore/notification.qml b/src/plugins/backends/snore/notification.qml index f8e5b08..ec88b5d 100644 --- a/src/plugins/backends/snore/notification.qml +++ b/src/plugins/backends/snore/notification.qml @@ -33,9 +33,7 @@ Rectangle { animation.start() } - - console.debug(width + "x" + height) - console.debug(body.maximumLineCount) + } NumberAnimation{ @@ -84,7 +82,7 @@ Rectangle { anchors.left: image.right anchors.leftMargin: 5 wrapMode: Text.WordWrap - maximumLineCount: root.height / font.pixelSize - 3 + maximumLineCount: height / font.pixelSize - 1 onLinkActivated: Qt.openUrlExternally(link) }