From 7ecdefa7f3caf880035257138bae81c768b8eb95 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 9 Dec 2019 08:11:46 -0400 Subject: [PATCH] Set x/y only on DebugConsole, not HDrawer --- src/qml/Base/HDrawer.qml | 2 -- src/qml/DebugConsole.qml | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/Base/HDrawer.qml b/src/qml/Base/HDrawer.qml index de4d0b3d..612b671a 100644 --- a/src/qml/Base/HDrawer.qml +++ b/src/qml/Base/HDrawer.qml @@ -4,8 +4,6 @@ import "../utils.js" as Utils Drawer { id: drawer - x: horizontal ? 0 : referenceSizeParent.width / 2 - width / 2 - y: vertical ? 0 : referenceSizeParent.height / 2 - height / 2 implicitWidth: horizontal ? calculatedSize : referenceSizeParent.width implicitHeight: vertical ? calculatedSize : referenceSizeParent.height diff --git a/src/qml/DebugConsole.qml b/src/qml/DebugConsole.qml index 70a07364..361b8f13 100644 --- a/src/qml/DebugConsole.qml +++ b/src/qml/DebugConsole.qml @@ -7,6 +7,8 @@ import "utils.js" as Utils HDrawer { id: debugConsole edge: Qt.BottomEdge + x: horizontal ? 0 : referenceSizeParent.width / 2 - width / 2 + y: vertical ? 0 : referenceSizeParent.height / 2 - height / 2 width: horizontal ? calculatedSize : Math.min(window.width, 720) height: vertical ? calculatedSize : Math.min(window.width, 480) normalSize: 360