diff options
Diffstat (limited to 'UVtools.WPF/Extensions/WindowExtensions.cs')
-rw-r--r-- | UVtools.WPF/Extensions/WindowExtensions.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/UVtools.WPF/Extensions/WindowExtensions.cs b/UVtools.WPF/Extensions/WindowExtensions.cs index e1bf8ad..247f71a 100644 --- a/UVtools.WPF/Extensions/WindowExtensions.cs +++ b/UVtools.WPF/Extensions/WindowExtensions.cs @@ -34,6 +34,8 @@ namespace UVtools.WPF.Extensions WindowStartupLocation = location, CanResize = false, MaxWidth = window.GetScreenWorkingArea().Width - UserSettings.Instance.General.WindowsHorizontalMargin, + MaxHeight = window.GetScreenWorkingArea().Height - UserSettings.Instance.General.WindowsVerticalMargin, + SizeToContent = SizeToContent.WidthAndHeight, ShowInCenter = true }); return await messageBoxStandardWindow.ShowDialog(window); |