summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2017-04-19 20:10:52 (GMT)
committerKai Uwe Broulik <kde@privat.broulik.de>2017-04-19 20:10:52 (GMT)
commit076091e8ee8be54e6c92c1026ff30d87a8286a22 (patch)
tree590118cd3cebed28251d8103451d17282c1eb5cb
parent0448e66453ba98402839c15f345e9c5be2155baf (diff)
[Folder View] Fix backport of wrapping fix
There's no labelMetrics and even if there were, it has no implicitWidth. The code in master also said "label", not labelMetrics. Probably IDE auto-correct to blame. Fixes wrapping text in FolderView delegate...
-rw-r--r--containments/desktop/package/contents/ui/FolderItemDelegate.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/containments/desktop/package/contents/ui/FolderItemDelegate.qml b/containments/desktop/package/contents/ui/FolderItemDelegate.qml
index 3a760e6..c313cb5 100644
--- a/containments/desktop/package/contents/ui/FolderItemDelegate.qml
+++ b/containments/desktop/package/contents/ui/FolderItemDelegate.qml
@@ -264,7 +264,7 @@ Item {
PropertyChanges {
target: label
anchors.topMargin: 2 * units.smallSpacing
- width: Math.min(labelMetrics.implicitWidth + units.smallSpacing, parent.width - units.smallSpacing * 8)
+ width: Math.min(label.implicitWidth + units.smallSpacing, parent.width - units.smallSpacing * 8)
maximumLineCount: plasmoid.configuration.textLines
horizontalAlignment: Text.AlignHCenter
}