From d1e52e5b7680e39cb505f49d239c1bc3a42a84bd Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Mon, 2 May 2022 11:05:56 +0200 Subject: [PATCH] Fix toolbar positioning when the toolbar is taller than its parent Fixes #11990 --- resources/qml/Cura.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index 3b06af677d..d22e5a1526 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -309,10 +309,13 @@ UM.MainWindow property int mouseX: base.mouseX property int mouseY: base.mouseY + property bool tallerThanParent: height > parent.height + + z: 1 // Ensure toolbar and toolpanels are drawn on top anchors { - verticalCenter: parent.verticalCenter + verticalCenter: tallerThanParent ? undefined : parent.verticalCenter left: parent.left } visible: CuraApplication.platformActivity && !PrintInformation.preSliced