Skip to content
Snippets Groups Projects
Commit 90558b4a authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Steve Lhomme
Browse files

qml: correct the anchoring logic in Player.qml

The video or the background should use all of the
available area unless the control bar is pinned
AND there is embedded video.
parent 2ef22bd1
No related branches found
No related tags found
1 merge request!6262qml: correct the anchoring logic in Player.qml
Pipeline #533824 passed with stages
in 33 minutes and 33 seconds
......@@ -169,8 +169,8 @@ FocusScope {
anchors {
left: parent.left
right: parent.right
top: (MainCtx.hasEmbededVideo && !rootPlayer._controlsUnderVideo) ? parent.top : topBar.bottom
bottom: (MainCtx.hasEmbededVideo && !rootPlayer._controlsUnderVideo) ? parent.bottom : controlBar.top
top: (MainCtx.hasEmbededVideo && rootPlayer._controlsUnderVideo) ? topBar.bottom : parent.top
bottom: (MainCtx.hasEmbededVideo && rootPlayer._controlsUnderVideo) ? controlBar.top : parent.bottom
}
sourceComponent: MainCtx.hasEmbededVideo ? videoComponent : audioComponent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment