Skip to content

Commit

Permalink
Set dynamic items size
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Jan 28, 2025
1 parent 669c28e commit c369a40
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions resources/qml/Menus/ConfigurationMenu/ConfigurationItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Button
right: parent.right
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

Repeater
Expand All @@ -98,11 +98,10 @@ Button
Item
{
id: unknownMaterial
height: unknownMaterialMessage.height + UM.Theme.getSize("thin_margin").width / 2
height: unknownMaterialMessage.height
width: parent.width

anchors.top: parent.top
anchors.topMargin: UM.Theme.getSize("thin_margin").width / 2

visible: ! (configurationItem.isValidMaterial && configurationItem.isValidCore)

Expand Down

0 comments on commit c369a40

Please sign in to comment.