From 9ef65cbe0314588105b802972472d08682a6dab2 Mon Sep 17 00:00:00 2001 From: Fushan Wen Date: Fri, 29 Sep 2023 19:41:27 +0800 Subject: [PATCH] WindowHeapDelegate: fix a binding loop warning It doesn't make sense to use Math.min when the label is always placed at the bottom center of the thumbnail item. --- src/plugins/private/qml/WindowHeapDelegate.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/private/qml/WindowHeapDelegate.qml b/src/plugins/private/qml/WindowHeapDelegate.qml index 6b4227b481..766444ceb4 100644 --- a/src/plugins/private/qml/WindowHeapDelegate.qml +++ b/src/plugins/private/qml/WindowHeapDelegate.qml @@ -171,9 +171,8 @@ Item { WorkspaceComponents.ShadowedLabel { id: caption visible: thumb.windowTitleVisible - width: Math.min(implicitWidth, thumb.width) + width: thumb.width anchors.top: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter elide: Text.ElideRight text: thumb.window.caption textFormat: Text.PlainText