Set min.-height and 'stage-awareness' for print-setup-UI. [CURA-6478]

This commit is contained in:
Remco Burema 2019-04-25 15:37:52 +02:00
parent 194f01f840
commit bd262ca6c4
3 changed files with 28 additions and 4 deletions

View file

@ -79,7 +79,10 @@ Item
property int shadowOffset: 2
// Prefix used for the dragged position preferences. Preferences not used if empty. Don't translate!
property var dragPreferencesNamePrefix: ""
property string dragPreferencesNamePrefix: ""
// Whether this component can remain when switchin from one stage to the other (for ex. 'Prepare' to 'Preview')
property bool isMultiStage: false
function toggleContent()
{
@ -325,6 +328,18 @@ Item
updateDragPosition();
}
Connections
{
target: UM.Controller
onActiveStageChanged:
{
if (isMultiStage)
{
updateDragPosition();
}
}
}
// 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