on xenial help sign in
remove the flickable left/right margins... they weren't useful
428e006Michael Zanetti
qml/Stage/Stage.qml+2−10
@@ -324,7 +324,7 @@ AbstractStage {
324 },
324 },
325 Transition {
325 Transition {
326 to: "spread"
326 to: "spread"
327− PropertyAction { target: spreadItem; property: "highlightedIndex"; value: 1 }
327+ PropertyAction { target: spreadItem; property: "highlightedIndex"; value: appRepeater.count > 1 ? 1 : 0 }
328 PropertyAction { target: floatingFlickable; property: "contentX"; value: 0 }
328 PropertyAction { target: floatingFlickable; property: "contentX"; value: 0 }
329 },
329 },
330 Transition {
330 Transition {
@@ -819,7 +819,7 @@ AbstractStage {
819 targetScale: spreadMaths.targetScale
819 targetScale: spreadMaths.targetScale
820 }
820 }
821
821
822− onXChanged: if (model.application.appId == "unity8-dash") print("dash moved to", x)
822+// onXChanged: if (model.application.appId == "unity8-dash") print("dash moved to", x)
823// onRequestedWidthChanged: if (index == 0) print("requestedWidth", requestedWidth)
823// onRequestedWidthChanged: if (index == 0) print("requestedWidth", requestedWidth)
824 onStateChanged: if (model.application.appId == "unity8-dash") print("state changed", state)
824 onStateChanged: if (model.application.appId == "unity8-dash") print("state changed", state)
825 states: [
825 states: [
@@ -1278,14 +1278,6 @@ AbstractStage {
1278 anchors.fill: appContainer
1278 anchors.fill: appContainer
1279 enabled: false
1279 enabled: false
1280 contentWidth: spreadItem.spreadTotalWidth
1280 contentWidth: spreadItem.spreadTotalWidth
1281− rightMargin: leftMargin
1282− leftMargin: {
1283− var stepOnXAxis = 1 / spreadItem.visibleItemCount
1284− var distanceToIndex1 = spreadItem.curve.getYFromX(stepOnXAxis)
1285− var middlePartDistance = spreadItem.curve.getYFromX(0.5 + stepOnXAxis/2) - spreadItem.curve.getYFromX(0.5 - stepOnXAxis/2)
1286− return 1.2 * (middlePartDistance - distanceToIndex1) * spreadItem.spreadWidth
1287− }
1288−
1289 }
1281 }
1290
1282
1291 PropertyAnimation {
1283 PropertyAnimation {