mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:09:00 +08:00
Align dropdown in open project dialog
CURA-9424
This commit is contained in:
parent
948ac84070
commit
95e0021cce
@ -111,9 +111,8 @@ UM.Dialog
|
||||
{
|
||||
id: machineSelector
|
||||
headerCornerSide: Cura.RoundedRectangle.Direction.All
|
||||
width: UM.Theme.getSize("machine_selector_widget").width
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
anchors.centerIn: parent
|
||||
machineListModel: manager.updatableMachinesModel
|
||||
machineName: manager.machineName
|
||||
|
||||
@ -122,6 +121,8 @@ UM.Dialog
|
||||
isCloudRegistered: false
|
||||
isGroup: false
|
||||
|
||||
minDropDownWidth: machineSelector.width
|
||||
|
||||
buttons: [
|
||||
Cura.SecondaryButton
|
||||
{
|
||||
|
@ -198,11 +198,14 @@ Cura.ExpandablePopup
|
||||
}
|
||||
}
|
||||
|
||||
property int minDropDownWidth: UM.Theme.getSize("machine_selector_widget_content").width
|
||||
property int maxDropDownHeight: UM.Theme.getSize("machine_selector_widget_content").height
|
||||
|
||||
contentItem: Item
|
||||
{
|
||||
id: popup
|
||||
implicitWidth: Math.max(machineSelector.width, UM.Theme.getSize("machine_selector_widget_content").width)
|
||||
implicitHeight: Math.min(machineSelectorList.contentHeight + separator.height + buttonRow.height, UM.Theme.getSize("machine_selector_widget_content").height) //Maximum height is the theme entry.
|
||||
implicitWidth: Math.max(machineSelector.width, minDropDownWidth)
|
||||
implicitHeight: Math.min(machineSelectorList.contentHeight + separator.height + buttonRow.height, maxDropDownHeight) //Maximum height is the theme entry.
|
||||
MachineSelectorList
|
||||
{
|
||||
id: machineSelectorList
|
||||
|
Loading…
x
Reference in New Issue
Block a user