SingleValue option to not elide long values

Bug #1366010 reported by Jonas G. Drange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Triaged
High
Unassigned

Bug Description

Some values used ListItem.SingleValues should not be truncated. E.g. when the value does not make sense without the full value being rendered.

Consider a SingleValue element with the following text and values:

SingleValue {
    text: "Ubuntu build id"
    value: "ubuntu-14.10-f00bar"
}

On a smaller device, this could render as [Ubuntu build id ubuntu-14…] and be meaningless.

Differences between locales could also make "Ubuntu build id" long, thus truncating that as well, making the whole element unintelligible.

Revision history for this message
Zsombor Egri (zsombi) wrote :

There is a small problem on not eliding: wrapping them into two-lines may need different spacing as the second line will be clipped or worst, it will overdraw the divider.

Changed in ubuntu-ui-toolkit:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

If width(text) + width(value) > width(row), then there are three choices: elide the text, elide the value, or display them on separate lines.

Eliding the value has the problem Jonas describes: this is already happening in System Settings > "About This Phone" > "Storage", where I see "Instagram Account Plugin 448…".

Displaying them on separate lines has the problem that it would disrupt the layout: some rows would have one line, some would have two, and the height might even change from second to second as the value changes.

So, as I said in bug 1390148, I think the toolkit should elide the text. This shouldn't apply to page stack rows (where summary values that don't fit should just be omitted altogether), but it should apply to all SingleValue rows by default.

Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → High
status: New → Triaged
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.