Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfieldOfView <aldo@fieldofview.com>2022-05-02 12:05:56 +0300
committerfieldOfView <aldo@fieldofview.com>2022-05-02 12:05:56 +0300
commitd1e52e5b7680e39cb505f49d239c1bc3a42a84bd (patch)
treea117b32b328e838bc8242c4d1dc7bdb8367ebfef /resources/qml/Cura.qml
parent81a170fb7bd62dcc4ec89e5575f2e785a6936a75 (diff)
Fix toolbar positioning when the toolbar is taller than its parent
Fixes #11990
Diffstat (limited to 'resources/qml/Cura.qml')
-rw-r--r--resources/qml/Cura.qml5
1 files changed, 4 insertions, 1 deletions
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