diff --git a/src/controls/templates/OverlaySheet.qml b/src/controls/templates/OverlaySheet.qml --- a/src/controls/templates/OverlaySheet.qml +++ b/src/controls/templates/OverlaySheet.qml @@ -100,6 +100,13 @@ */ property real bottomInset: 0 + /** + * bottomMargin: real + * margin of the sheet from the bottom of the screen + * @since 2.12 + */ + property real bottomMargin: Units.gridUnit*2 + /** * header: Item * an optional item which will be used as the sheet's header, @@ -270,7 +277,7 @@ target: outerFlickable properties: "contentY" from: -outerFlickable.height - to: Math.max(0, outerFlickable.height - outerFlickable.contentHeight + headerItem.height + footerItem.height) + to: Math.max(0, outerFlickable.height - outerFlickable.contentHeight + headerItem.height + footerItem.height)+root.bottomMargin duration: Units.longDuration easing.type: Easing.OutQuad } @@ -288,9 +295,9 @@ target: outerFlickable properties: "contentY" from: outerFlickable.contentY - to: outerFlickable.visibleArea.yPosition < (1 - outerFlickable.visibleArea.heightRatio)/2 || scrollView.flickableItem.contentHeight < outerFlickable.height + to: (outerFlickable.visibleArea.yPosition < (1 - outerFlickable.visibleArea.heightRatio)/2 || scrollView.flickableItem.contentHeight < outerFlickable.height ? Math.max(0, outerFlickable.height - outerFlickable.contentHeight + headerItem.height + footerItem.height) - : outerFlickable.contentHeight - outerFlickable.height + outerFlickable.topEmptyArea + headerItem.height + footerItem.height + : outerFlickable.contentHeight - outerFlickable.height + outerFlickable.topEmptyArea + headerItem.height + footerItem.height)+root.bottomMargin duration: Units.longDuration easing.type: Easing.OutQuad }