app/HVAC.qml: Use the Window width and height instead of using Screen 32/24832/1 9.99.1 9.99.2 9.99.3 9.99.4 jellyfish/9.99.1 jellyfish/9.99.2 jellyfish/9.99.3 jellyfish/9.99.4 jellyfish_9.99.1 jellyfish_9.99.2 jellyfish_9.99.3 jellyfish_9.99.4
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 29 May 2020 11:01:23 +0000 (14:01 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 24 Jun 2020 14:15:49 +0000 (17:15 +0300)
width and height

Hard-code the width as the slider can't seem to resolve the correct
width.

Bug-AGL: SPEC-3379

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

app/HVAC.qml

index 1a39167..4e27e2d 100644 (file)
@@ -41,9 +41,9 @@ ApplicationWindow {
     Item {
         id: container
         anchors.centerIn: parent
-        width: Screen.width
-        height: Screen.height
-        scale: 1
+        width: Window.width
+        height: Window.height
+        scale: Window.scale
 
        ColumnLayout {
                anchors.fill: parent
@@ -56,7 +56,7 @@ ApplicationWindow {
                                source: './images/HMI_HVAC_Fan_Icon.svg'
                        }
                        Item {
-                               width: container.width * 0.8
+                               width: 1080 * 0.8
                                Slider {
                                        id: fanSpeedSlider
                                        anchors.left: parent.left