Commit 522041de authored by Don Gagne's avatar Don Gagne

Merge pull request #3154 from DonLakeFlyer/DynamicBind

Swipe View: Use dynamic binding for height
parents 1c3b9dbb 0e94b362
......@@ -87,7 +87,7 @@ Item {
if (mouse.x < xDragStart) {
if (xValuesPageSave == 0) {
valuesPage.x = -valuesPage.width
_root.height = vibrationPage.height + pageIndicatorRow.anchors.topMargin + pageIndicatorRow.height
_root.height = Qt.binding(function() { return vibrationPage.height + pageIndicatorRow.anchors.topMargin + pageIndicatorRow.height } )
valuesPageIndicator.color = "transparent"
vibrationPageIndicator.color = textColor
} else {
......@@ -96,7 +96,7 @@ Item {
} else {
if (xValuesPageSave != 0) {
valuesPage.x = 0
_root.height = valuesPage.height + pageIndicatorRow.anchors.topMargin + pageIndicatorRow.height
_root.height = Qt.binding(function() { return valuesPage.height + pageIndicatorRow.anchors.topMargin + pageIndicatorRow.height } )
valuesPageIndicator.color = textColor
vibrationPageIndicator.color = "transparent"
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment