Add back code for resizing contentContainer.

This makes sure that the background get smaller when the setting container is resized.

CURA-8640
This commit is contained in:
j.delarago 2022-04-01 11:36:22 +02:00
parent 748606e5b5
commit e40a219b53

View file

@ -307,4 +307,16 @@ Item
contentItem: Item {}
}
}
// DO NOT MOVE UP IN THE CODE: This connection has to be here, after the definition of the content item.
// Apparently the order in which these are handled matters and so the height is correctly updated if this is here.
Connections
{
// Since it could be that the content is dynamically populated, we should also take these changes into account.
target: content.contentItem
function onHeightChanged()
{
contentContainer.height = contentHeader.height + content.height
}
}
}