aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-07-03 12:13:47 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-07-03 12:13:47 +0300
commitc28e44321ca1d6cbeb8049d436804cf378725ab2 (patch)
tree998d1e88aaa8278a66d1451619e0f04e56a7f2b8
parent27f1a0931b5374f27a16bdc7f175fd9a1a33665c (diff)
Launcher.qml: Allow to scale correctly on lower resolutionsandbox/mvlad/scaling-layout
Bug-AGL: SPEC-3348 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I8e200d069c49df803fbf062b069d47e84a2d103e
-rw-r--r--launcher/qml/Launcher.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/launcher/qml/Launcher.qml b/launcher/qml/Launcher.qml
index 347cdfb..9c295d6 100644
--- a/launcher/qml/Launcher.qml
+++ b/launcher/qml/Launcher.qml
@@ -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