diff options
author | 2020-07-03 12:18:01 +0300 | |
---|---|---|
committer | 2020-07-03 12:18:01 +0300 | |
commit | c7db77421a5873fb611911010f95dc4ad4efd072 (patch) | |
tree | 98dea3f1847833c23547c8039c27fe898a918a53 /app | |
parent | 50940a37ac8c8017f07e69e6b35ae16946bcbee0 (diff) |
HVAC.qml: Allow scaling at lower resolutionssandbox/mvlad/scale-layout
Bug-AGL: SPEC-3348
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I67b43c2aa85a1c75ad851dac04c82576883b1c48
Diffstat (limited to 'app')
-rw-r--r-- | app/HVAC.qml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/HVAC.qml b/app/HVAC.qml index 4e27e2d..dbab358 100644 --- a/app/HVAC.qml +++ b/app/HVAC.qml @@ -41,9 +41,10 @@ ApplicationWindow { Item { id: container anchors.centerIn: parent - width: Window.width - height: Window.height - scale: Window.scale + + height: 1920 - 218 - 215 + width: 1080 + scale: (Screen.width / 1080.0) ColumnLayout { anchors.fill: parent @@ -56,7 +57,7 @@ ApplicationWindow { source: './images/HMI_HVAC_Fan_Icon.svg' } Item { - width: 1080 * 0.8 + width: container.width * 0.8 Slider { id: fanSpeedSlider anchors.left: parent.left |