should work now

This commit is contained in:
honzapatCZ
2021-04-06 16:54:22 +02:00
parent 7f5869e257
commit 41a873450e
3 changed files with 41 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
diff a/Source/Engine/UI/GUI/Control.Bounds.cs b/Source/Engine/UI/GUI/Control.Bounds.cs (rejected hunks)
@@ -485,13 +485,13 @@
_anchorMin = anchorMin;
_anchorMax = anchorMax;
- if (preserveBounds)
+ if (!centerToPosition)
{
UpdateBounds();
Bounds = bounds;
}
}
- if (!preserveBounds)
+ if (centerToPosition)
{
if (_parent != null)
{

View File

@@ -193,7 +193,7 @@ namespace FlaxEngine.GUI
}
return result;
}
set => SetAnchorPreset(value, Input.GetKey(KeyboardKeys.Shift), Input.GetKey(KeyboardKeys.Control));
set => SetAnchorPreset(value, true, false);
}
/// <summary>