mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:39:01 +08:00
Anchor last-row extruder box to left and right to stretch it
Layout.fillwidth seems to only stretch the box to full width on the first row, but without it the entire thing doesn't stretch. Leaving the width out will make the entire left column stretch so that the right column is no longer visible. It's all a bit weird, this QML stuff. Contributes to issue CURA-3161.
This commit is contained in:
parent
b69ec56f66
commit
6629c8d0cf
@ -85,6 +85,8 @@ Column
|
||||
width: extrudersGrid.width / 2 - UM.Theme.getSize("sidebar_lining_thin").width / 2
|
||||
height: UM.Theme.getSize("sidebar_extruder_box").height
|
||||
Layout.fillWidth: index == machineExtruderCount.properties.value - 1 && index % 2 == 0
|
||||
anchors.right: (index == machineExtruderCount.properties.value - 1 && index % 2 == 0) ? parent.right : undefined
|
||||
anchors.left: (index == machineExtruderCount.properties.value - 1 && index % 2 == 0) ? parent.left : undefined
|
||||
|
||||
Label //Extruder name.
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user