Launcher.qml: Allow to scale correctly on lower resolution sandbox/mvlad/scaling-layout
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 3 Jul 2020 09:13:47 +0000 (12:13 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 3 Jul 2020 09:13:47 +0000 (12:13 +0300)
Bug-AGL: SPEC-3348

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

launcher/qml/Launcher.qml

index 347cdfb..9c295d6 100644 (file)
@@ -30,10 +30,9 @@ ApplicationWindow {
     Item {
         id: container
         anchors.centerIn: parent
-        width: Window.width
-        height: Window.height
-        //scale: screenInfo.scale_factor()
-        scale: 1
+       height: (1920 - 218 - 215)
+       width: 1080
+       scale: (Screen.width / 1080.0)
 
         Image {
           anchors.centerIn: parent