Browse Source

Fix direction of pointing rectangle

Turns out that using anchors doesn't quite work anymore due to qt6 upgrade. Oh well!
CURA-9137
Jaime van Kessel 2 years ago
parent
commit
25839c6d97
2 changed files with 3 additions and 3 deletions
  1. 2 2
      plugins/SimulationView/LayerSlider.qml
  2. 1 1
      resources/qml/Toolbar.qml

+ 2 - 2
plugins/SimulationView/LayerSlider.qml

@@ -266,7 +266,7 @@ Item
             anchors.bottom: parent.top
             anchors.bottomMargin: UM.Theme.getSize("narrow_margin").height
             anchors.horizontalCenter: parent.horizontalCenter
-            target: Qt.point(parent.width / 2, parent.top)
+            target: Qt.point(parent.width / 2, 1)
             visible: sliderRoot.activeHandle == parent || sliderRoot.activeHandle == rangeHandle
 
             // custom properties
@@ -376,7 +376,7 @@ Item
             anchors.top: parent.bottom
             anchors.topMargin: UM.Theme.getSize("narrow_margin").height
             anchors.horizontalCenter: parent.horizontalCenter
-            target: Qt.point(parent.width / 2, parent.bottom)
+            target: Qt.point(parent.width / 2, -1)
             visible: sliderRoot.activeHandle == parent || sliderRoot.activeHandle == rangeHandle
 
             // custom properties

+ 1 - 1
resources/qml/Toolbar.qml

@@ -157,7 +157,7 @@ Item
         anchors.topMargin: base.activeY
         z: buttons.z - 1
 
-        target: Qt.point(parent.right, base.activeY +  Math.round(UM.Theme.getSize("button").height/2))
+        target: Qt.point(-1, base.activeY +  Math.round(UM.Theme.getSize("button").height / 2))
         arrowSize: UM.Theme.getSize("default_arrow").width
 
         width: