~untrusted-ci-dev-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-xenial-17

« back to all changes in this revision

Viewing changes to plugins/Ubuntu/Settings/Menus/StandardMenu.qml

  • Committer: CI Train Bot
  • Author(s): Michael Zanetti
  • Date: 2015-07-16 09:48:41 UTC
  • mfrom: (85.1.1 ubuntu-settings-components-dpr)
  • Revision ID: ci-train-bot@canonical.com-20150716094841-sfluz7gn6apnna24
Tell the layout what size we want the icons to be

width/height are ignored by the Layout and it uses only implicitWidth/implicitHeight unless explicitly set with Layout.preferredWidth/preferredHeight.
Approved by: Nick Dedekind, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
            readonly property real size: Math.min(units.gu(3), parent.height - menu.__contentsMargins)
58
58
 
59
 
            height: size
60
 
            width: size
 
59
            Layout.preferredHeight: size
 
60
            Layout.preferredWidth: size
61
61
            Layout.alignment: Qt.AlignVCenter
62
62
        }
63
63