Fix toolbar positioning when the toolbar is taller than its parent

Fixes #11990
This commit is contained in:
fieldOfView 2022-05-02 11:05:56 +02:00
parent 81a170fb7b
commit d1e52e5b76

View file

@ -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