Getting setting section sized properly

CURA-9793
This commit is contained in:
Joey de l'Arago 2022-11-25 17:42:50 +01:00
parent ac2e733ea6
commit eb13ac7f6b
4 changed files with 41 additions and 19 deletions

View file

@ -20,15 +20,19 @@ Item
property var enableSectionClicked: { return }
property int leftColumnWidth: width / 2
property alias contents: settingColumn.children
function onEnableSectionChanged(state) {}
height: childrenRect.height
width: parent.width
Item
{
id: sectionHeader
anchors.top: parent.top
anchors.right: parent.right
anchors.left: parent.left
height: UM.Theme.getSize("section_header").height
Cura.IconWithText
{
@ -71,8 +75,8 @@ Item
{
id: contentLoader
width: parent.width
height: content.height
anchors.left: settingLabel.right
height: childrenRect.height
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
sourceComponent: content