diff --git a/src/FlightMap/Widgets/InstrumentSwipeView.qml b/src/FlightMap/Widgets/InstrumentSwipeView.qml index 0af95fddd51527fad3f63dd6289c4b86bc9280aa..7e5128d4e739fc0eb47da0586d9e02b17aac7d74 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 {