mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 16:29:01 +08:00
Ensure the layout gets the right width & height for the output devices popup
CURA-6222
This commit is contained in:
parent
dbb8514a6a
commit
6ff1f49c34
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user