on xenial help sign in
Do that last offset thing more generically
commit5dc62b4d712b87ff8186253ddd30291862cdebd5 authorMichael Terry <michael.terry@canonical.com> dateWed 7 Jan 2015, 17:29 (12 years ago) parent0de1c99
2 files changed+2−2
qml/Tutorial/Slider.qml+2−1 qml/Tutorial/TutorialLeft.qml−1
qml/Tutorial/Slider.qml+2−1
@@ -37,7 +37,8 @@ Item {
3737 readonly property real margin: units.gu(0.5)
3838 readonly property real arrowSize: root.height - margin * 2
3939 readonly property real dotSize: units.dp(1)
40− readonly property real slideOffset: Math.min(root.offset, target.x)
40+ readonly property real slideOffset: Math.min(root.offset - offscreenOffset, target.x)
41+ readonly property real offscreenOffset: units.gu(2)
4142 }
4243
4344 implicitWidth: shortSwipe ? units.gu(15) : units.gu(27.5)
qml/Tutorial/TutorialLeft.qml−1
@@ -78,7 +78,6 @@ TutorialPage {
7878 id: slider
7979 anchors {
8080 left: parent.left
81− leftMargin: -units.gu(2)
8281 top: parent.top
8382 topMargin: root.textBottom + units.gu(3)
8483 }