From 61cab679ca83af0b07e681780eda205afc5c6e83 Mon Sep 17 00:00:00 2001 From: Gus Grubba Date: Wed, 29 Jan 2020 21:35:39 -0500 Subject: [PATCH] CP - Fix video margins when video is in PIP mode --- src/FlightDisplay/FlightDisplayView.qml | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/FlightDisplay/FlightDisplayView.qml b/src/FlightDisplay/FlightDisplayView.qml index 45f529705..98bc28582 100644 --- a/src/FlightDisplay/FlightDisplayView.qml +++ b/src/FlightDisplay/FlightDisplayView.qml @@ -367,11 +367,11 @@ Item { name: "pipMode" PropertyChanges { target: _flightVideo - anchors.margins: _toolsMargin + anchors.margins: ScreenTools.defaultFontPixelHeight } PropertyChanges { - target: _flightVideoPipControl - inPopup: false + target: _flightVideoPipControl + inPopup: false } }, State { @@ -381,8 +381,8 @@ Item { anchors.margins: 0 } PropertyChanges { - target: _flightVideoPipControl - inPopup: false + target: _flightVideoPipControl + inPopup: false } }, State { @@ -396,19 +396,19 @@ Item { } } PropertyChanges { - target: _flightVideoPipControl - inPopup: true + target: _flightVideoPipControl + inPopup: true } }, State { name: "popup-finished" ParentChange { - target: _flightVideo - parent: videoItem - x: 0 - y: 0 - width: videoItem.width - height: videoItem.height + target: _flightVideo + parent: videoItem + x: 0 + y: 0 + width: videoItem.width + height: videoItem.height } }, State { @@ -420,12 +420,12 @@ Item { } } ParentChange { - target: _flightVideo - parent: _mapAndVideo + target: _flightVideo + parent: _mapAndVideo } PropertyChanges { - target: _flightVideoPipControl - inPopup: false + target: _flightVideoPipControl + inPopup: false } } ] -- 2.22.0