mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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
|
|
@ -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…
Add table
Add a link
Reference in a new issue