@@ -32,12 +32,12 @@ Showable {
32 property real openedHeight: units.gu(71)
32 property real openedHeight: units.gu(71)
33 property bool enableHint: true
33 property bool enableHint: true
34 property bool showOnClick: true
34 property bool showOnClick: true
35+ property bool adjustDragHandleSizeToContents: true
35 property color panelColor: theme.palette.normal.background
36 property color panelColor: theme.palette.normal.background
36 property real menuContentX: 0
37 property real menuContentX: 0
38 property alias alignment: bar.alignment
39 property alias alignment: bar.alignment
39− property alias rowTitle: bar.rowTitle
40+ property alias hideRow: bar.hideRow
40− property alias showRowTitle: bar.showRowTitle
41 property alias rowItemDelegate: bar.rowItemDelegate
41 property alias rowItemDelegate: bar.rowItemDelegate
42 property alias pageDelegate: content.pageDelegate
42 property alias pageDelegate: content.pageDelegate
@@ -46,7 +46,7 @@ Showable {
46 readonly property bool partiallyOpened: unitProgress > 0 && unitProgress < 1.0
46 readonly property bool partiallyOpened: unitProgress > 0 && unitProgress < 1.0
47 readonly property bool fullyClosed: unitProgress == 0
47 readonly property bool fullyClosed: unitProgress == 0
48 readonly property alias expanded: bar.expanded
48 readonly property alias expanded: bar.expanded
49− readonly property int barWidth: Math.min(bar.width, bar.implicitWidth)
49+ readonly property int barWidth: adjustDragHandleSizeToContents ? Math.min(bar.width, bar.implicitWidth) : bar.width
51 signal showTapped()
51 signal showTapped()
@@ -175,7 +175,6 @@ Showable {
175 enableLateralChanges: false
175 enableLateralChanges: false
176 lateralPosition: -1
176 lateralPosition: -1
177 unitProgress: root.unitProgress
177 unitProgress: root.unitProgress
178− shiftLeftTitle: root.menuContentX
180 height: expanded ? expandedPanelHeight : minimizedPanelHeight
179 height: expanded ? expandedPanelHeight : minimizedPanelHeight
181 Behavior on height { NumberAnimation { duration: UbuntuAnimation.SnapDuration; easing: UbuntuAnimation.StandardEasing } }
180 Behavior on height { NumberAnimation { duration: UbuntuAnimation.SnapDuration; easing: UbuntuAnimation.StandardEasing } }
@@ -230,7 +229,7 @@ Showable {
230 anchors.left: alignment == Qt.AlignLeft ? parent.left : undefined
229 anchors.left: alignment == Qt.AlignLeft ? parent.left : undefined
231 anchors.leftMargin: -root.menuContentX
230 anchors.leftMargin: -root.menuContentX
232 anchors.right: alignment == Qt.AlignRight ? parent.right : undefined
231 anchors.right: alignment == Qt.AlignRight ? parent.right : undefined
233− width: root.barWidth // show handle should only cover panel items.
232+ width: root.barWidth + root.menuContentX // show handle should only cover panel items.
234 height: minimizedPanelHeight
233 height: minimizedPanelHeight
235 direction: Direction.Downwards
234 direction: Direction.Downwards
236 enabled: !root.shown && root.available
235 enabled: !root.shown && root.available