Default Minimum/Maximum WindowSizeConstraints (#1574)

* feat: Default Minimum/Maximum WindowSizeConstraints

If `MinimumSize` or `MaximumSize` are not set when defining a `WindowSizeConstraints`, they will be effectively unbounded.

* chore: Make internal windows unbounded on max size

* Ignore max value if it's smaller than minimum in any dimension
This commit is contained in:
KazWolfe 2024-02-17 10:06:41 -08:00 committed by GitHub
parent e21b64969f
commit c19e1f0fcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 26 additions and 6 deletions

View file

@ -148,7 +148,6 @@ internal class PluginInstallerWindow : Window, IDisposable
this.SizeConstraints = new WindowSizeConstraints
{
MinimumSize = this.Size.Value,
MaximumSize = new Vector2(5000, 5000),
};
Service<PluginManager>.GetAsync().ContinueWith(pluginManagerTask =>