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

@ -47,6 +47,14 @@ Item
popup.contentItem = popupItem
}
Connections
{
// Since it could be that the popup is dynamically populated, we should also take these changes into account.
target: popupItem
onWidthChanged: popup.width = popupItem.width + 2 * popup.padding
onHeightChanged: popup.height = popupItem.height + 2 * popup.padding
}
implicitHeight: 100
implicitWidth: 400
Rectangle