Make SimulationViewMenuComponent also use the ExpandableComponent

CURA-5785
This commit is contained in:
Jaime van Kessel 2018-11-13 15:57:00 +01:00
parent deb5fd1926
commit 785c2661a2
3 changed files with 20 additions and 64 deletions

View file

@ -78,7 +78,7 @@ Item
property var buttonTarget: Qt.point(viewModeButton.x + Math.round(viewModeButton.width / 2), viewModeButton.y + Math.round(viewModeButton.height / 2))
height: childrenRect.height
height: parent.height
width: childrenRect.width
source: UM.Controller.activeView != null && UM.Controller.activeView.stageMenuComponent != null ? UM.Controller.activeView.stageMenuComponent : ""