From d134f8d3121e693f8276df805fa55f37b10b3667 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 8 Jun 2017 12:39:03 +0100 Subject: [PATCH] Fix binding loop in ClipboardItemDelegate Label has verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter but in this delegate the height stretches to fit the text: - height depends on verticalAlignment - lineCount depends on height creating a loop with this in the middle. In this case we always want delegates in the middle, so we can just override the superclass. --- applets/clipboard/contents/ui/ClipboardItemDelegate.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applets/clipboard/contents/ui/ClipboardItemDelegate.qml b/applets/clipboard/contents/ui/ClipboardItemDelegate.qml index c20fcb33f..d3ff456d6 100644 --- a/applets/clipboard/contents/ui/ClipboardItemDelegate.qml +++ b/applets/clipboard/contents/ui/ClipboardItemDelegate.qml @@ -102,6 +102,8 @@ PlasmaComponents.ListItem { width: parent.width height: undefined // unset PlasmaComponents.Label default height maximumLineCount: 3 + verticalAlignment: Text.AlignVCenter + text: { var highlightFontTag = "%1"