toppanel: Wrap the TopArea into an Item
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 17 Jul 2020 22:35:33 +0000 (01:35 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Thu, 23 Jul 2020 10:38:32 +0000 (13:38 +0300)
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
homescreen/qml/toppanel.qml

index b62a0d1..977c23b 100644 (file)
@@ -3,13 +3,19 @@ import QtQuick.Window 2.13
 
 Window {
     id: toppanel
-    width: Screen.width
-    height: Screen.height * (218.0 / 1920.0)
+    width: container.width
+    height: Screen.height * (210.0 / 1920.0)
     flags: Qt.FramelessWindowHint
     visible: true
     //color: "#aaaa0000"
 
-    TopArea {
+    Item {
+       id: container
+       width: Screen.width
+       height: Screen.height * (218.0 / 1920.0)
+
+       TopArea {
+       }
     }
 
     Timer {