From 6ff1f49c347b69e9b280441e4d4bef1698108ea1 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 14 Feb 2019 17:21:54 +0100 Subject: [PATCH] Ensure the layout gets the right width & height for the output devices popup CURA-6222 --- resources/qml/ActionPanel/OutputDevicesActionButton.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/qml/ActionPanel/OutputDevicesActionButton.qml b/resources/qml/ActionPanel/OutputDevicesActionButton.qml index 3bfaab0fc1..866b8cc627 100644 --- a/resources/qml/ActionPanel/OutputDevicesActionButton.qml +++ b/resources/qml/ActionPanel/OutputDevicesActionButton.qml @@ -90,6 +90,10 @@ Item cornerRadius: 0 hoverColor: UM.Theme.getColor("primary") Layout.fillWidth: true + // The total width of the popup should be defined by the largest button. By stating that each + // button should be minimally the size of it's content (aka; implicitWidth) we can ensure that. + Layout.minimumWidth: implicitWidth + Layout.preferredHeight: widget.height onClicked: { UM.OutputDeviceManager.setActiveDevice(model.id)