From 0e94b36204a26265414117f68e4a0f0399d8eeaa Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Tue, 5 Apr 2016 19:58:21 -0700 Subject: [PATCH] Use dynamic binding for height --- src/FlightMap/Widgets/InstrumentSwipeView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FlightMap/Widgets/InstrumentSwipeView.qml b/src/FlightMap/Widgets/InstrumentSwipeView.qml index 0af95fddd..7e5128d4e 100644 --- a/src/FlightMap/Widgets/InstrumentSwipeView.qml +++ b/src/FlightMap/Widgets/InstrumentSwipeView.qml @@ -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 { -- 2.22.0