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.
master
Fushan Wen 12 months ago
parent 51c517f2b8
commit 9ef65cbe03
No known key found for this signature in database
GPG Key ID: 2E48D1487C91DCAA

@ -171,9 +171,8 @@ Item {
WorkspaceComponents.ShadowedLabel { WorkspaceComponents.ShadowedLabel {
id: caption id: caption
visible: thumb.windowTitleVisible visible: thumb.windowTitleVisible
width: Math.min(implicitWidth, thumb.width) width: thumb.width
anchors.top: parent.bottom anchors.top: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
elide: Text.ElideRight elide: Text.ElideRight
text: thumb.window.caption text: thumb.window.caption
textFormat: Text.PlainText textFormat: Text.PlainText

Loading…
Cancel
Save