mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:39:01 +08:00
Set dynamic items size
CURA-12368
This commit is contained in:
parent
669c28e618
commit
c369a405b3
@ -78,7 +78,7 @@ Button
|
|||||||
right: parent.right
|
right: parent.right
|
||||||
rightMargin: UM.Theme.getSize("wide_margin").width
|
rightMargin: UM.Theme.getSize("wide_margin").width
|
||||||
}
|
}
|
||||||
height: childrenRect.height
|
height: unknownMaterial.visible ? unknownMaterial.height : (repeater.count > 0 ? repeater.itemAt(0).height : 0)
|
||||||
spacing: UM.Theme.getSize("default_margin").width
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
Repeater
|
Repeater
|
||||||
@ -98,11 +98,10 @@ Button
|
|||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: unknownMaterial
|
id: unknownMaterial
|
||||||
height: unknownMaterialMessage.height + UM.Theme.getSize("thin_margin").width / 2
|
height: unknownMaterialMessage.height
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: UM.Theme.getSize("thin_margin").width / 2
|
|
||||||
|
|
||||||
visible: ! (configurationItem.isValidMaterial && configurationItem.isValidCore)
|
visible: ! (configurationItem.isValidMaterial && configurationItem.isValidCore)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user