mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 22:29:41 +08:00
Prevent MachineSettings dialog go beyond the top of screen
This commit is contained in:
parent
96e9780273
commit
a0f841e8eb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user