mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
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:
parent
748606e5b5
commit
e40a219b53
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue