This is due to the title's Label having WrapAnywhere as wrapMode. This means only ElideRight will function.
Adding a note of this in the documentation, with an accompanying example [1] about how to get e.g. ElideMiddle to function, would fix this issue.
[1] import QtQuick 2.4 import Ubuntu.Components 1.3 Item { width: units.gu(30) height: units.gu(50)
ListItem { ListItemLayout { id: fileLayout title.elide: Text.ElideMiddle title.wrapMode: Text.NoWrap title.text: "Red Roses run no risk, sir, on nurses order." } } }
This is due to the title's Label having WrapAnywhere as wrapMode. This means only ElideRight will function.
Adding a note of this in the documentation, with an accompanying example [1] about how to get e.g. ElideMiddle to function, would fix this issue.
[1]
import QtQuick 2.4
import Ubuntu.Components 1.3
Item {
width: units.gu(30)
height: units.gu(50)
ListItem {
ListItemLayout {
title. elide: Text.ElideMiddle
title. wrapMode: Text.NoWrap
title. text: "Red Roses run no risk, sir, on nurses order."
id: fileLayout
}
}
}