@@ -33,6 +33,7 @@ Showable {
33 property bool enableHint: true
33 property bool enableHint: true
34 property bool showOnClick: true
34 property bool showOnClick: true
35 property color panelColor: theme.palette.normal.background
35 property color panelColor: theme.palette.normal.background
36+ property real menuContentX: 0
37 property alias alignment: bar.alignment
38 property alias alignment: bar.alignment
38 property alias rowTitle: bar.rowTitle
39 property alias rowTitle: bar.rowTitle
@@ -77,33 +78,42 @@ Showable {
78 shown: false
79 shown: false
79 height: minimizedPanelHeight
80 height: minimizedPanelHeight
80− clip: root.partiallyOpened
82 onUnitProgressChanged: d.updateState()
82 onUnitProgressChanged: d.updateState()
86− anchors.fill: content
88− acceptedButtons: Qt.AllButtons
89− onWheel: wheel.accepted = true;
90− enabled: root.state != "initial"
91− visible: content.visible
96− objectName: "menuContent"
99 left: parent.left
86 left: parent.left
100 right: parent.right
87 right: parent.right
101 top: bar.bottom
88 top: bar.bottom
89+ bottom: parent.bottom
91+ clip: root.partiallyOpened
95+ anchors.fill: content
97+ acceptedButtons: Qt.AllButtons
98+ onWheel: wheel.accepted = true;
99+ enabled: root.state != "initial"
100+ visible: content.visible
105+ objectName: "menuContent"
112+ height: openedHeight - bar.height - handle.height
114+ visible: root.unitProgress > 0
115+ currentMenuIndex: bar.currentItemIndex
103− height: openedHeight - bar.height - handle.height
105− visible: root.unitProgress > 0
106− currentMenuIndex: bar.currentItemIndex
@@ -165,6 +175,7 @@ Showable {
165 enableLateralChanges: false
175 enableLateralChanges: false
166 lateralPosition: -1
176 lateralPosition: -1
167 unitProgress: root.unitProgress
177 unitProgress: root.unitProgress
178+ shiftLeftTitle: root.menuContentX
169 height: expanded ? expandedPanelHeight : minimizedPanelHeight
180 height: expanded ? expandedPanelHeight : minimizedPanelHeight
170 Behavior on height { NumberAnimation { duration: UbuntuAnimation.SnapDuration; easing: UbuntuAnimation.StandardEasing } }
181 Behavior on height { NumberAnimation { duration: UbuntuAnimation.SnapDuration; easing: UbuntuAnimation.StandardEasing } }
@@ -217,6 +228,7 @@ Showable {
217 objectName: "showDragHandle"
228 objectName: "showDragHandle"
218 anchors.bottom: parent.bottom
229 anchors.bottom: parent.bottom
219 anchors.left: alignment == Qt.AlignLeft ? parent.left : undefined
230 anchors.left: alignment == Qt.AlignLeft ? parent.left : undefined
231+ anchors.leftMargin: -root.menuContentX
220 anchors.right: alignment == Qt.AlignRight ? parent.right : undefined
232 anchors.right: alignment == Qt.AlignRight ? parent.right : undefined
221 width: root.barWidth // show handle should only cover panel items.
233 width: root.barWidth // show handle should only cover panel items.
222 height: minimizedPanelHeight
234 height: minimizedPanelHeight