mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 06:45:09 -06:00
Add window-size handling to draggable component. [CURA-6478]
This commit is contained in:
parent
7382798b6a
commit
9283c3d321
1 changed files with 18 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue