toppanel: Wrap the TopArea into an Item
[apps/homescreen.git] / 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 {