Use sensible window minimum size limits in editor windows

This commit is contained in:
2025-04-13 15:37:37 +03:00
parent 2a2652302f
commit 16f06b5848
3 changed files with 3 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ namespace FlaxEditor.GUI.Docking
settings.Title = title;
settings.Size = size;
settings.Position = location;
settings.MinimumSize = new Float2(1);
settings.MinimumSize = new Float2(200, 150);
settings.MaximumSize = Float2.Zero; // Unlimited size
settings.Fullscreen = false;
settings.HasBorder = true;

View File

@@ -758,6 +758,7 @@ namespace FlaxEditor.Modules
var settings = CreateWindowSettings.Default;
settings.Title = "Flax Editor";
settings.Size = Platform.DesktopSize * 0.75f;
settings.MinimumSize = new Float2(200, 150);
settings.StartPosition = WindowStartPosition.CenterScreen;
settings.ShowAfterFirstPaint = true;
#if PLATFORM_WINDOWS

View File

@@ -11,7 +11,7 @@ namespace FlaxEngine
{
Position = new Float2(100, 100),
Size = new Float2(640, 480),
MinimumSize = Float2.One,
MinimumSize = new Float2(24, 24),
MaximumSize = Float2.Zero, // Unlimited size
StartPosition = WindowStartPosition.CenterParent,
HasBorder = true,