Commit 61cab679 authored by Gus Grubba's avatar Gus Grubba

CP - Fix video margins when video is in PIP mode

parent 5259114b
...@@ -367,11 +367,11 @@ Item { ...@@ -367,11 +367,11 @@ Item {
name: "pipMode" name: "pipMode"
PropertyChanges { PropertyChanges {
target: _flightVideo target: _flightVideo
anchors.margins: _toolsMargin anchors.margins: ScreenTools.defaultFontPixelHeight
} }
PropertyChanges { PropertyChanges {
target: _flightVideoPipControl target: _flightVideoPipControl
inPopup: false inPopup: false
} }
}, },
State { State {
...@@ -381,8 +381,8 @@ Item { ...@@ -381,8 +381,8 @@ Item {
anchors.margins: 0 anchors.margins: 0
} }
PropertyChanges { PropertyChanges {
target: _flightVideoPipControl target: _flightVideoPipControl
inPopup: false inPopup: false
} }
}, },
State { State {
...@@ -396,19 +396,19 @@ Item { ...@@ -396,19 +396,19 @@ Item {
} }
} }
PropertyChanges { PropertyChanges {
target: _flightVideoPipControl target: _flightVideoPipControl
inPopup: true inPopup: true
} }
}, },
State { State {
name: "popup-finished" name: "popup-finished"
ParentChange { ParentChange {
target: _flightVideo target: _flightVideo
parent: videoItem parent: videoItem
x: 0 x: 0
y: 0 y: 0
width: videoItem.width width: videoItem.width
height: videoItem.height height: videoItem.height
} }
}, },
State { State {
...@@ -420,12 +420,12 @@ Item { ...@@ -420,12 +420,12 @@ Item {
} }
} }
ParentChange { ParentChange {
target: _flightVideo target: _flightVideo
parent: _mapAndVideo parent: _mapAndVideo
} }
PropertyChanges { PropertyChanges {
target: _flightVideoPipControl target: _flightVideoPipControl
inPopup: false inPopup: false
} }
} }
] ]
......
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