mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Align dropdown in open project dialog
CURA-9424
This commit is contained in:
parent
948ac84070
commit
95e0021cce
2 changed files with 8 additions and 4 deletions
|
@ -111,9 +111,8 @@ UM.Dialog
|
||||||
{
|
{
|
||||||
id: machineSelector
|
id: machineSelector
|
||||||
headerCornerSide: Cura.RoundedRectangle.Direction.All
|
headerCornerSide: Cura.RoundedRectangle.Direction.All
|
||||||
width: UM.Theme.getSize("machine_selector_widget").width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
anchors.centerIn: parent
|
|
||||||
machineListModel: manager.updatableMachinesModel
|
machineListModel: manager.updatableMachinesModel
|
||||||
machineName: manager.machineName
|
machineName: manager.machineName
|
||||||
|
|
||||||
|
@ -122,6 +121,8 @@ UM.Dialog
|
||||||
isCloudRegistered: false
|
isCloudRegistered: false
|
||||||
isGroup: false
|
isGroup: false
|
||||||
|
|
||||||
|
minDropDownWidth: machineSelector.width
|
||||||
|
|
||||||
buttons: [
|
buttons: [
|
||||||
Cura.SecondaryButton
|
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
|
contentItem: Item
|
||||||
{
|
{
|
||||||
id: popup
|
id: popup
|
||||||
implicitWidth: Math.max(machineSelector.width, UM.Theme.getSize("machine_selector_widget_content").width)
|
implicitWidth: Math.max(machineSelector.width, minDropDownWidth)
|
||||||
implicitHeight: Math.min(machineSelectorList.contentHeight + separator.height + buttonRow.height, UM.Theme.getSize("machine_selector_widget_content").height) //Maximum height is the theme entry.
|
implicitHeight: Math.min(machineSelectorList.contentHeight + separator.height + buttonRow.height, maxDropDownHeight) //Maximum height is the theme entry.
|
||||||
MachineSelectorList
|
MachineSelectorList
|
||||||
{
|
{
|
||||||
id: machineSelectorList
|
id: machineSelectorList
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue