on xenial help sign in
elide the tileinfo labels
commite3d87a1fb0ccabee2e19193d34699d3c7585d0b5 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 18 Sep 2015, 18:06 (11 years ago) parent9507574
1 file changed+3−1
qml/Stages/DesktopSpread.qml+3−1
qml/Stages/DesktopSpread.qml+3−1
@@ -220,7 +220,8 @@ FocusScope {
220220 id: tileInfo
221221 objectName: "tileInfo"
222222 anchors { left: parent.left; top: clippedSpreadDelegate.bottom; topMargin: units.gu(5) }
223− width: units.gu(30)
223+ property int nextItemX: spreadRepeater.count > index + 1 ? spreadRepeater.itemAt(index + 1).x : spreadDelegate.x + units.gu(30)
224+ width: Math.min(units.gu(30), nextItemX - spreadDelegate.x)
224225 height: titleInfoColumn.height
225226 visible: false
226227 hoverEnabled: true
@@ -253,6 +254,7 @@ FocusScope {
253254 Layout.preferredHeight: units.gu(6)
254255 text: model.name
255256 wrapMode: Text.WordWrap
257+ elide: Text.ElideRight
256258 maximumLineCount: 2
257259 }
258260 }