mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-08 16:08:58 +08:00
Fix layout
Dialog is now more robust against being too small
This commit is contained in:
parent
219d1938c2
commit
d00bb2524e
@ -41,7 +41,7 @@ Cura.MachineAction
|
||||
anchors.fill: parent;
|
||||
Item
|
||||
{
|
||||
id: bedLevelMachineAction
|
||||
id: machineSettingsAction
|
||||
anchors.fill: parent;
|
||||
|
||||
UM.I18nCatalog { id: catalog; name: "cura"; }
|
||||
@ -233,7 +233,6 @@ Cura.MachineAction
|
||||
|
||||
UM.TooltipArea
|
||||
{
|
||||
id: extruderCountControl
|
||||
visible: manager.definedExtruderCount > 1
|
||||
height: childrenRect.height
|
||||
width: childrenRect.width
|
||||
@ -246,6 +245,8 @@ Cura.MachineAction
|
||||
Label
|
||||
{
|
||||
text: catalog.i18nc("@label", "Number of Extruders")
|
||||
elide: Text.ElideRight
|
||||
width: Math.max(0, settingsTabs.columnWidth - 2 * UM.Theme.getSize("default_margin").width - extruderCountComboBox.width)
|
||||
anchors.verticalCenter: extruderCountComboBox.verticalCenter
|
||||
}
|
||||
ComboBox
|
||||
@ -553,6 +554,8 @@ Cura.MachineAction
|
||||
{
|
||||
text: _label
|
||||
visible: _label != ""
|
||||
elide: Text.ElideRight
|
||||
width: Math.max(0, settingsTabs.columnWidth - 2 * UM.Theme.getSize("default_margin").width - textFieldWithUnit.width)
|
||||
anchors.verticalCenter: textFieldWithUnit.verticalCenter
|
||||
}
|
||||
|
||||
@ -644,7 +647,9 @@ Cura.MachineAction
|
||||
{
|
||||
text: _label
|
||||
visible: _label != ""
|
||||
anchors.verticalCenter: textFieldWithUnit.verticalCenter
|
||||
elide: Text.ElideRight
|
||||
width: Math.max(0, settingsTabs.columnWidth - 2 * UM.Theme.getSize("default_margin").width - comboBox.width)
|
||||
anchors.verticalCenter: comboBox.verticalCenter
|
||||
}
|
||||
ComboBox
|
||||
{
|
||||
@ -774,11 +779,14 @@ Cura.MachineAction
|
||||
{
|
||||
text: _label
|
||||
visible: _label != ""
|
||||
elide: Text.ElideRight
|
||||
width: Math.max(0, settingsTabs.columnWidth - 2 * UM.Theme.getSize("default_margin").width - textFieldWithUnit.width)
|
||||
anchors.verticalCenter: textFieldWithUnit.verticalCenter
|
||||
}
|
||||
|
||||
Item
|
||||
{
|
||||
id: textFieldWithUnit
|
||||
width: textField.width
|
||||
height: textField.height
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user