diff options
author | 2020-07-02 17:28:36 +0300 | |
---|---|---|
committer | 2020-07-03 12:16:57 +0300 | |
commit | 0e28554a64b706e1cf0e0b9065530d5869f88c32 (patch) | |
tree | ffef8a1125ac125759c18e5a5038c84ce0eb6cd2 | |
parent | 8a7865f1e9152b5098e1f1183310e90a10a58de1 (diff) |
MediaPlayer.qml: Allow to scale correctly on lower resolutions
Bug-AGL: SPEC-3348
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Icf22e54f49af7c6629b5276bbfe376033226e577
-rw-r--r-- | app/MediaPlayer.qml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index 74fcf2e..063fb55 100644 --- a/app/MediaPlayer.qml +++ b/app/MediaPlayer.qml @@ -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 |