From 0e28554a64b706e1cf0e0b9065530d5869f88c32 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Thu, 2 Jul 2020 17:28:36 +0300 Subject: MediaPlayer.qml: Allow to scale correctly on lower resolutions Bug-AGL: SPEC-3348 Signed-off-by: Marius Vlad Change-Id: Icf22e54f49af7c6629b5276bbfe376033226e577 --- app/MediaPlayer.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index 74fcf2e..063fb55 100644 --- a/app/MediaPlayer.qml +++ b/app/MediaPlayer.qml @@ -94,10 +94,9 @@ ApplicationWindow { Item { id: container anchors.centerIn: parent - width: Window.width - height: Window.height - //scale: screenInfo.scale_factor() - scale: 1 + height: 1920 - 215 - 218 + width: 1080 + scale: (Screen.width/ 1080.0) ColumnLayout { anchors.fill: parent -- cgit 1.2.3-korg