Set x/y only on DebugConsole, not HDrawer

This commit is contained in:
miruka 2019-12-09 08:11:46 -04:00
parent a5e01fd3b9
commit 7ecdefa7f3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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