~zsombi/ubuntu-ui-toolkit/03-styleditem-styleset

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/TextInputPopover.qml

  • Committer: Zsombor Egri
  • Date: 2015-03-11 15:10:17 UTC
  • mfrom: (1434.1.15 02-styleset)
  • Revision ID: zsombor.egri@canonical.com-20150311151017-55iekp5lvd9a7mcj
prereq sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    */
75
75
    y: parent ? (parent.height - height) / 2 : 0
76
76
    autoClose: false
77
 
    contentHeight: row.childrenRect.height
78
 
    contentWidth: row.childrenRect.width
 
77
    contentHeight: row.childrenRect.height + padding * 2
 
78
    contentWidth: row.childrenRect.width + padding * 2
 
79
    property int padding: units.gu(1)
79
80
    Row {
80
81
        id: row
81
82
        height: units.gu(6)
 
83
        x: popover.padding
 
84
        y: popover.padding
82
85
 
83
86
        Repeater {
84
87
            model: actions.length
90
93
                  accessible. https://bugs.launchpad.net/autopilot/+bug/1334599
91
94
                  */
92
95
                property string text: action.text
93
 
                width: Math.max(units.gu(4), implicitWidth) + units.gu(2)
 
96
                width: Math.max(units.gu(5), implicitWidth) + units.gu(2)
94
97
                height: units.gu(6)
95
98
                action: actions[modelData]
96
99
                style: Theme.createStyleComponent("ToolbarButtonStyle.qml", button)