mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Prevent MachineSettings dialog go beyond the top of screen
This commit is contained in:
parent
96e9780273
commit
a0f841e8eb
1 changed files with 5 additions and 0 deletions
|
@ -114,6 +114,11 @@ UM.ManagementPage
|
||||||
property var content
|
property var content
|
||||||
minimumWidth: 350 * Screen.devicePixelRatio;
|
minimumWidth: 350 * Screen.devicePixelRatio;
|
||||||
minimumHeight: 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:
|
onContentChanged:
|
||||||
{
|
{
|
||||||
contents = content;
|
contents = content;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue