Fix UI Controls layout auto-resizing to always use pivot-relative logic

#3031
This commit is contained in:
Wojtek Figat
2025-03-16 22:57:18 +01:00
parent 87e423ed48
commit fa68a5f572
5 changed files with 18 additions and 6 deletions

View File

@@ -585,7 +585,8 @@ namespace FlaxEngine.GUI
_cachedHeight = height;
if (_animationProgress >= 1.0f && _isClosed)
y = minHeight;
Height = Mathf.Max(minHeight, y);
var size = new Float2(Width, Mathf.Max(minHeight, y));
Resize(ref size);
}
/// <inheritdoc />