@@ -47,6 +47,8 @@ Item {
47 property int drawBuffer: width / pathItemCount // an "ok" value - but values used from the listView cause loops
47 property int drawBuffer: width / pathItemCount // an "ok" value - but values used from the listView cause loops
48 /// The selected item can be shown in a different size controlled by selectedItemScaleFactor
48 /// The selected item can be shown in a different size controlled by selectedItemScaleFactor
49 property real selectedItemScaleFactor: 1.1
49 property real selectedItemScaleFactor: 1.1
50+ /// The extra margin at the bottom
51+ property real extraBottomMargin: 0
50 /// The index of the item that should be highlighted
52 /// The index of the item that should be highlighted
51 property alias highlightIndex: listView.highlightIndex
53 property alias highlightIndex: listView.highlightIndex
52 /// exposes the delegate of the currentItem
54 /// exposes the delegate of the currentItem
@@ -114,13 +116,13 @@ Item {
114 readonly property real tileWidth: Math.max(realWidth / pathItemCount, minimumTileWidth)
116 readonly property real tileWidth: Math.max(realWidth / pathItemCount, minimumTileWidth)
115 readonly property real tileHeight: tileWidth / tileAspectRatio
117 readonly property real tileHeight: tileWidth / tileAspectRatio
116 readonly property real translationXViewFactor: 0.2 * (referenceGapToMiddlePhase / gapToMiddlePhase)
118 readonly property real translationXViewFactor: 0.2 * (referenceGapToMiddlePhase / gapToMiddlePhase)
117− readonly property real verticalMargin: (parent.height - tileHeight) / 2
119+ readonly property real verticalMargin: (parent.height - tileHeight - carousel.extraBottomMargin) / 2
118 readonly property real visibleTilesScaleFactor: realPathItemCount / referencePathItemCount
120 readonly property real visibleTilesScaleFactor: realPathItemCount / referencePathItemCount
120 anchors {
122 anchors {
121 fill: parent
123 fill: parent
122 topMargin: verticalMargin
124 topMargin: verticalMargin
123− bottomMargin: verticalMargin
125+ bottomMargin: verticalMargin + carousel.extraBottomMargin
124 // extending the "drawing area"
126 // extending the "drawing area"
125 leftMargin: -carousel.drawBuffer
127 leftMargin: -carousel.drawBuffer
126 rightMargin: -carousel.drawBuffer
128 rightMargin: -carousel.drawBuffer
@@ -249,7 +251,7 @@ Item {
249 listView.gapToEndPhase,
251 listView.gapToEndPhase,
250 listView.translationXViewFactor)
252 listView.translationXViewFactor)
252− delegate: tileWidth > 0 && tileHeight > 0 ? loaderComponent : undefined
254+ delegate: tileWidth > 0 && tileHeight > 0 ? loaderComponent : null
254 Component {
256 Component {
255 id: loaderComponent
257 id: loaderComponent