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.
This commit is contained in:
Fushan Wen 2023-09-29 19:41:27 +08:00
parent 51c517f2b8
commit 9ef65cbe03
No known key found for this signature in database
GPG key ID: 2E48D1487C91DCAA

View file

@ -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