Prevent MachineSettings dialog go beyond the top of screen

This commit is contained in:
Lipu Fei 2017-03-23 13:45:55 +01:00
parent 96e9780273
commit a0f841e8eb

View File

@ -114,6 +114,11 @@ UM.ManagementPage
property var content
minimumWidth: 350 * Screen.devicePixelRatio;
minimumHeight: 350 * Screen.devicePixelRatio;
// prevent the Machine Settings dialog from going beyond the top of the screen
x: (x < 0) ? 0 : x
y: (y < 0) ? 0 : y
onContentChanged:
{
contents = content;