mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:59:00 +08:00
Add window-size handling to draggable component. [CURA-6478]
This commit is contained in:
parent
7382798b6a
commit
9283c3d321
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user