MediaPlayer.qml: Allow to scale correctly on lower resolutions
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 2 Jul 2020 14:28:36 +0000 (17:28 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 3 Jul 2020 09:16:57 +0000 (12:16 +0300)
Bug-AGL: SPEC-3348

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Icf22e54f49af7c6629b5276bbfe376033226e577

app/MediaPlayer.qml

index 74fcf2e..063fb55 100644 (file)
@@ -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