Add window-size handling to draggable component. [CURA-6478]

This commit is contained in:
Remco Burema 2019-04-25 11:08:13 +02:00
parent 7382798b6a
commit 9283c3d321

View file

@ -263,6 +263,24 @@ Item
contentContainer.trySetPosition(contentContainer.x + delta.x, contentContainer.y + delta.y);
}
}
Connections
{
target: UM.Preferences
onPreferenceChanged:
{
if
(
preference !== "general/window_height" &&
preference !== "general/window_width" &&
preference !== "general/window_state"
)
{
return;
}
contentContainer.trySetPosition(contentContainer.x, contentContainer.y);
}
}
}
}