Header actions text is cut off

Bug #1354812 reported by David Planella
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Fix Released
High
Cris Dywan
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Undecided
Unassigned
Vivid
New
Undecided
Unassigned
ubuntu-ui-toolkit (Ubuntu RTM)
New
Undecided
Unassigned

Bug Description

See the attached screenshot.

- Expected: actions drop-down expands to fit the contained text. Alternatively, the documentation warns about a maximum character size. Alternatively, text is ellipsized.
- Actual: text longer than a given size (which?) is cut off

This will affect translations for system and core apps in particular, where the English text might fit, but translations that are longer will be cut off.

It corresponds to header actions for the following code snippet:

            head.actions: [
                Action {
                    text: i18n.tr("Settings")
                    iconName: "settings"
                    onTriggered: pageStack.push(settingsPage)
                },
                Action {
                    objectName: "hidepanelaction"
                    iconName: "edit-clear"
                    text: i18n.tr("Hide all key panels")
                    onTriggered: pgTerm.showExtraPanel(0)
                },
                Action {
                    objectName: "controlkeysaction"
                    text: i18n.tr("Show control keys panel")
                    onTriggered: pgTerm.showExtraPanel(1)
                },
                Action {
                    objectName: "functionkeysaction"
                    text: i18n.tr("Show function keys panel")
                    onTriggered: pgTerm.showExtraPanel(2)
                },
                Action {
                    objectName: "textkeysaction"
                    text: i18n.tr("Show arrow keys panel")
                    onTriggered: pgTerm.showExtraPanel(3)
                }
            ]
        }

Tags: avengers

Related branches

Revision history for this message
David Planella (dpm) wrote :
tags: added: avengers
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed