Set x/y only on DebugConsole, not HDrawer
This commit is contained in:
parent
a5e01fd3b9
commit
7ecdefa7f3
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user