Browse Source

Fix toolbar positioning when the toolbar is taller than its parent

Fixes #11990
fieldOfView 2 years ago
parent
commit
d1e52e5b76
1 changed files with 4 additions and 1 deletions
  1. 4 1
      resources/qml/Cura.qml

+ 4 - 1
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