Browse Source

Merge branch 'fix_tall_toolbar' of https://github.com/fieldOfView/Cura

Jaime van Kessel 2 years ago
parent
commit
8b02b4161b
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